[PATCH 3/4] mshtml/tests: Skip postMessage test on IE7.

Jacek Caban <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Signed-off-by: Jacek Caban <[email protected]>
---
 dlls/mshtml/tests/jstest.html | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
0003-mshtml-tests-Skip-postMessage-test-on-IE7.diff (text/x-patch, 852 B)
diff --git a/dlls/mshtml/tests/jstest.html b/dlls/mshtml/tests/jstest.html
index 00dd35dbc6..cce805032c 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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.