Jacek Caban : usp10: Added test of ScriptStringAnalyse call with 0 length string.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Sep 10 08:07:54 CDT 2015
Module: wine
Branch: master
Commit: efb1cf0299c23385f934fa9b3abc920bfca46611
URL: http://source.winehq.org/git/wine.git/?a=commit;h=efb1cf0299c23385f934fa9b3abc920bfca46611
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Sep 10 12:46:47 2015 +0200
usp10: Added test of ScriptStringAnalyse call with 0 length string.
---
dlls/usp10/tests/usp10.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
index b5d43f7..0db98d9 100644
--- a/dlls/usp10/tests/usp10.c
+++ b/dlls/usp10/tests/usp10.c
@@ -2547,6 +2547,12 @@ static void test_ScriptString(HDC hdc)
&InClass, &ssa);
ok(hr == E_PENDING, "ScriptStringAnalyse Stub should return E_PENDING not %08x\n", hr);
+ /* Test that 0 length string returns E_INVALIDARG */
+ hr = ScriptStringAnalyse( hdc, teststr, 0, Glyphs, Charset, Flags,
+ ReqWidth, NULL, NULL, Dx, NULL,
+ &InClass, &ssa);
+ ok(hr == E_INVALIDARG, "ScriptStringAnalyse should return E_INVALIDARG not %08x\n", hr);
+
/* test with hdc, this should be a valid test */
hr = ScriptStringAnalyse( hdc, teststr, len, Glyphs, Charset, Flags,
ReqWidth, NULL, NULL, Dx, NULL,
More information about the wine-cvs
mailing list