Paul Vriens : usp10/tests: Fix some test failures on Vista and W2K8 ( ScriptPlace).
Alexandre Julliard
julliard at winehq.org
Fri Apr 10 08:10:16 CDT 2009
Module: wine
Branch: master
Commit: a12cc39ca3d6ebbf4c21be0ecb5a7849e211dddb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a12cc39ca3d6ebbf4c21be0ecb5a7849e211dddb
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Fri Apr 10 09:51:32 2009 +0200
usp10/tests: Fix some test failures on Vista and W2K8 (ScriptPlace).
---
dlls/usp10/tests/usp10.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
index 6c33b0f..d485fc8 100644
--- a/dlls/usp10/tests/usp10.c
+++ b/dlls/usp10/tests/usp10.c
@@ -44,6 +44,8 @@ static void test_ScriptShape(HDC hdc)
SCRIPT_VISATTR attrs[4];
SCRIPT_ITEM items[2];
int nb, widths[4];
+ GOFFSET offset[4];
+ ABC abc[4];
hr = ScriptItemize(NULL, 4, 2, NULL, NULL, items, NULL);
ok(hr == E_INVALIDARG, "ScriptItemize should return E_INVALIDARG not %08x\n", hr);
@@ -81,9 +83,19 @@ static void test_ScriptShape(HDC hdc)
ok(hr == E_INVALIDARG, "ScriptPlace should return E_INVALIDARG not %08x\n", hr);
hr = ScriptPlace(NULL, &sc, glyphs, 4, attrs, &items[0].a, widths, NULL, NULL);
+ ok(hr == E_PENDING ||
+ hr == E_INVALIDARG, /* Vista, W2K8 */
+ "ScriptPlace should return E_PENDING or E_INVALIDARG, not %08x\n", hr);
+
+ hr = ScriptPlace(NULL, &sc, glyphs, 4, attrs, &items[0].a, widths, offset, NULL);
ok(hr == E_PENDING, "ScriptPlace should return E_PENDING not %08x\n", hr);
- hr = ScriptPlace(hdc, &sc, glyphs, 4, attrs, &items[0].a, widths, NULL, NULL);
+ hr = ScriptPlace(NULL, &sc, glyphs, 4, attrs, &items[0].a, widths, NULL, abc);
+ ok(hr == E_PENDING ||
+ hr == E_INVALIDARG, /* Vista, W2K8 */
+ "ScriptPlace should return E_PENDING or E_INVALIDARG, not %08x\n", hr);
+
+ hr = ScriptPlace(hdc, &sc, glyphs, 4, attrs, &items[0].a, widths, offset, NULL);
ok(!hr, "ScriptPlace should return S_OK not %08x\n", hr);
ok(items[0].a.fNoGlyphIndex == FALSE, "fNoGlyphIndex TRUE\n");
More information about the wine-cvs
mailing list