Commit 47bb0de4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed tests on IEs not supporting INewWindowManager.

parent 56241289
...@@ -3572,22 +3572,31 @@ static void test_open_window(IHTMLDocument2 *doc) ...@@ -3572,22 +3572,31 @@ static void test_open_window(IHTMLDocument2 *doc)
SET_EXPECT(EvaluateNewWindow); SET_EXPECT(EvaluateNewWindow);
hres = IHTMLWindow2_open(window, url, name, NULL, VARIANT_FALSE, &new_window); hres = IHTMLWindow2_open(window, url, name, NULL, VARIANT_FALSE, &new_window);
todo_wine open_call = FALSE;
ok(hres == S_OK, "open failed: %08x\n", hres); SysFreeString(url);
todo_wine SysFreeString(name);
ok(new_window == NULL, "new_window != NULL\n");
todo_wine todo_wine
CHECK_CALLED(TranslateUrl); CHECK_CALLED(TranslateUrl);
if(!called_EvaluateNewWindow) {
todo_wine
win_skip("INewWindowManager not supported\n");
if(SUCCEEDED(hres) && new_window)
IHTMLWindow2_Release(new_window);
IHTMLWindow2_Release(window);
return;
}
todo_wine todo_wine
CHECK_CALLED(EvaluateNewWindow); CHECK_CALLED(EvaluateNewWindow);
open_call = FALSE; todo_wine
SysFreeString(url); ok(hres == S_OK, "open failed: %08x\n", hres);
SysFreeString(name); todo_wine
ok(new_window == NULL, "new_window != NULL\n");
IHTMLWindow2_Release(window); IHTMLWindow2_Release(window);
SysFreeString(name);
} }
static void test_clear(IHTMLDocument2 *doc) static void test_clear(IHTMLDocument2 *doc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment