ieframe/tests: Use todo_wine_if() in tests.

Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Frédéric Delanoy 2016-02-17 21:13:30 +01:00 committed by Alexandre Julliard
parent 4f1a8da1cd
commit 0d6ed1b667
2 changed files with 3 additions and 11 deletions

View File

@ -147,10 +147,7 @@ static void _check_string_transform(unsigned line, IUniformResourceLocatorA *url
output = (void*)0xdeadbeef;
hr = urlA->lpVtbl->GetURL(urlA, &output);
if(expectedOutput) {
if(is_todo) {
todo_wine
ok_(__FILE__,line)(hr == S_OK, "GetUrl failed, hr=0x%x\n", hr);
}else {
todo_wine_if(is_todo) {
ok_(__FILE__,line)(hr == S_OK, "GetUrl failed, hr=0x%x\n", hr);
}
todo_wine

View File

@ -2806,10 +2806,7 @@ static void test_QueryStatusWB(IWebBrowser2 *webbrowser, BOOL has_document)
if (use_container_olecmd) SET_EXPECT(QueryStatus_STOP);
hres = IWebBrowser2_QueryStatusWB(webbrowser, OLECMDID_STOP, &status);
ok(hres == success_state, "QueryStatusWB failed: %08x %08x\n", hres, success_state);
if (!use_container_olecmd && has_document)
todo_wine ok((has_document && status == success_flags) || (!has_document && status == 0xdeadbeef),
"OLECMDID_STOP not enabled/supported: %08x %08x\n", status, success_flags);
else
todo_wine_if (!use_container_olecmd && has_document)
ok((has_document && status == success_flags) || (!has_document && status == 0xdeadbeef),
"OLECMDID_STOP not enabled/supported: %08x %08x\n", status, success_flags);
status = 0xdeadbeef;
@ -3312,9 +3309,7 @@ static void test_UIActivate(IWebBrowser2 *unk, BOOL activate)
}
hres = IOleDocumentView_UIActivate(docview, activate);
if(activate)
todo_wine ok(hres == S_OK, "Got 0x%08x\n", hres);
else
todo_wine_if(activate)
ok(hres == S_OK, "Got 0x%08x\n", hres);
if(activate) {