Nikolay Sivov : dwrite/tests: Couple more tests for IDWriteNumberSubstitution creation.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 17 11:19:37 CDT 2016
Module: wine
Branch: master
Commit: 7119c50940fb091e2985bdf8662189e8e9013837
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7119c50940fb091e2985bdf8662189e8e9013837
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon May 16 20:51:35 2016 +0300
dwrite/tests: Couple more tests for IDWriteNumberSubstitution creation.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/tests/analyzer.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dlls/dwrite/tests/analyzer.c b/dlls/dwrite/tests/analyzer.c
index 043d7a1..23c3d22 100644
--- a/dlls/dwrite/tests/analyzer.c
+++ b/dlls/dwrite/tests/analyzer.c
@@ -1207,10 +1207,16 @@ static void test_numbersubstitution(void)
IDWriteNumberSubstitution *substitution;
HRESULT hr;
+ /* locale is not specified, method does not require it */
hr = IDWriteFactory_CreateNumberSubstitution(factory, DWRITE_NUMBER_SUBSTITUTION_METHOD_NONE, NULL, FALSE, &substitution);
ok(hr == S_OK, "got 0x%08x\n", hr);
IDWriteNumberSubstitution_Release(substitution);
+ /* invalid locale name, method does not require it */
+ hr = IDWriteFactory_CreateNumberSubstitution(factory, DWRITE_NUMBER_SUBSTITUTION_METHOD_NONE, dummyW, FALSE, &substitution);
+ ok(hr == S_OK, "got 0x%08x\n", hr);
+ IDWriteNumberSubstitution_Release(substitution);
+
/* invalid method */
hr = IDWriteFactory_CreateNumberSubstitution(factory, DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL+1, NULL, FALSE, &substitution);
ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
@@ -1220,6 +1226,9 @@ static void test_numbersubstitution(void)
ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
/* invalid locale */
+ hr = IDWriteFactory_CreateNumberSubstitution(factory, DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL, NULL, FALSE, &substitution);
+ ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
+
hr = IDWriteFactory_CreateNumberSubstitution(factory, DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL, dummyW, FALSE, &substitution);
ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
More information about the wine-cvs
mailing list