Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / security / cross-frame-access-getOwnPropertyDescriptor.html
index 2daab8c..caadf14 100644 (file)
@@ -84,7 +84,6 @@
             "MutationEvent", 
             "Node", 
             "NodeFilter", 
-            "Notation", 
             "Option", 
             "ProcessingInstruction", 
             "Range", 
                 testRunner.waitUntilDone();
             }
 
-            if (window.testRunner) {
-                setTimeout(pollForTest, 1);
-            } else {
-                log("To run the test, click the button below when the opened window finishes loading.");
-                var button = document.createElement("button");
-                button.appendChild(document.createTextNode("Run Test"));
-                button.onclick = runTest;
-                document.body.appendChild(button);
-            }
-        }
-
-        pollForTest = function()
-        {
-            if (!testRunner.globalFlag) {
-                setTimeout(pollForTest, 1);
-                return;
-            }
-            runTest();
-            testRunner.notifyDone();
+            window.addEventListener('message', function()
+            {
+                runTest();
+                if (window.testRunner)
+                    testRunner.notifyDone();
+            });
         }
 
         runTest = function()