diff --git a/dlls/mshtml/tests/jstest.html b/dlls/mshtml/tests/jstest.html index 00dd35dbc6e..cce805032c0 100644 --- a/dlls/mshtml/tests/jstest.html +++ b/dlls/mshtml/tests/jstest.html @@ -362,7 +362,12 @@ function test_xhr() { ok(typeof(xhr) === "object", "typeof(xhr) = " + typeof(xhr)); } -function test_sendMessage() { +function test_postMessage() { + if(!("postMessage" in window)) { + win_skip("postMessage not available"); + return; + } + var onmessage_called = false; window.onmessage = function() { onmessage_called = true; @@ -397,7 +402,7 @@ function runTests() { test_language_attribute(); test_text_node(); test_xhr(); - test_sendMessage(); + test_postMessage(); var r = window.execScript("globalVar = true;"); ok(r === undefined, "execScript returned " + r);