[Gdiplus 08/15] Test for CharacterRange
Adam Petaccia
adam at tpetaccia.com
Wed Jul 9 02:33:52 CDT 2008
---
dlls/gdiplus/tests/stringformat.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/stringformat.c b/dlls/gdiplus/tests/stringformat.c
index 9cf46a4..5350310 100644
--- a/dlls/gdiplus/tests/stringformat.c
+++ b/dlls/gdiplus/tests/stringformat.c
@@ -48,6 +48,27 @@ static void test_constructor(void)
stat = GdipDeleteStringFormat(format);
expect(Ok, stat);
}
+static void test_characterrange(void)
+{
+ CharacterRange ranges[3];
+ INT count;
+ GpStringFormat* format;
+ GpStatus stat;
+
+ stat = GdipCreateStringFormat(0, LANG_NEUTRAL, &format);
+ expect(Ok, stat);
+todo_wine
+{
+ stat = GdipSetStringFormatMeasurableCharacterRanges(format, 3, ranges);
+ expect(Ok, stat);
+ stat = GdipGetStringFormatMeasurableCharacterRangeCount(format, &count);
+ expect(Ok, stat);
+ expect(3, count);
+}
+ stat= GdipDeleteStringFormat(format);
+ expect(Ok, stat);
+}
+
START_TEST(stringformat)
{
@@ -62,6 +83,7 @@ START_TEST(stringformat)
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
test_constructor();
+ test_characterrange();
GdiplusShutdown(gdiplusToken);
}
--
1.5.4.3
More information about the wine-patches
mailing list