mshtml/tests: Skip postMessage test on IE7.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-10-24 19:37:44 +02:00 committed by Alexandre Julliard
parent 8bcd54d7b5
commit caa3c43272
1 changed files with 7 additions and 2 deletions

View File

@ -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);