Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / xhr-to-blob-in-isolated-world.html
index fc4246a..7bb1c69 100644 (file)
@@ -4,11 +4,10 @@ We pass if there are no console errors.
 <script>
 if (!window.testRunner) {
     document.body.appendChild(document.createTextNode("This test requires window.testRunner"));
-    return;
+} else {
+    testRunner.dumpAsText();
+    testRunner.setIsolatedWorldSecurityOrigin(1, "chrome-extension://123");
+    testRunner.evaluateScriptInIsolatedWorld(1, "var xhr = new XMLHttpRequest(); xhr.open('GET', 'blob:chrome-extension%3A//123/456789', false); xhr.send();");
 }
-
-testRunner.dumpAsText();
-testRunner.setIsolatedWorldSecurityOrigin(1, "chrome-extension://123");
-testRunner.evaluateScriptInIsolatedWorld(1, "var xhr = new XMLHttpRequest(); xhr.open('GET', 'blob:chrome-extension%3A//123/456789', false); xhr.send();");
 </script>
 </body>