Module: wine Branch: master Commit: 2f7bb7c5385c86dced1c7e1d183c8a2a38699a50 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f7bb7c5385c86dced1c7e1d18...
Author: Adam Petaccia adam@tpetaccia.com Date: Wed Jul 9 03:33:52 2008 -0400
gdiplus: Test for CharacterRange.
---
dlls/gdiplus/tests/stringformat.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/stringformat.c b/dlls/gdiplus/tests/stringformat.c index 9cf46a4..919e1f7 100644 --- a/dlls/gdiplus/tests/stringformat.c +++ b/dlls/gdiplus/tests/stringformat.c @@ -49,6 +49,28 @@ static void test_constructor(void) 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) { struct GdiplusStartupInput gdiplusStartupInput; @@ -62,6 +84,7 @@ START_TEST(stringformat) GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
test_constructor(); + test_characterrange();
GdiplusShutdown(gdiplusToken); }