| Index: third_party/WebKit/LayoutTests/fast/dom/script-tests/location-new-window-no-crash.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/script-tests/location-new-window-no-crash.js b/third_party/WebKit/LayoutTests/fast/dom/script-tests/location-new-window-no-crash.js
|
| deleted file mode 100644
|
| index a21c179c6ea4de2c5b7eba5f21467b80d4162c6a..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/script-tests/location-new-window-no-crash.js
|
| +++ /dev/null
|
| @@ -1,59 +0,0 @@
|
| -description("Tests that manipulating location properties in a just-created window object does not crash. Note: Turn off pop-up blocking to run this in-browser.");
|
| -
|
| -if (window.testRunner) {
|
| - testRunner.waitUntilDone();
|
| - testRunner.setCanOpenWindows();
|
| -}
|
| -
|
| -var testWindow = open("data:text/plain,a");
|
| -
|
| -// Note that the window does not navigate to the new URL right away, and that is a crucial element
|
| -// of the test. We're checking behavior when the object was just created and is not yet at its new
|
| -// location.
|
| -
|
| -shouldBe("testWindow.location.toString()", "'about:blank'");
|
| -shouldBe("testWindow.location.href", "'about:blank'");
|
| -shouldBe("testWindow.location.protocol", "'about:'");
|
| -shouldBe("testWindow.location.host", "''"); // Firefox throws an exception
|
| -shouldBe("testWindow.location.hostname", "''"); // Firefox throws an exception
|
| -shouldBe("testWindow.location.port", "''");
|
| -shouldBe("testWindow.location.pathname", "'blank'"); // Firefox returns the empty string
|
| -shouldBe("testWindow.location.search", "''");
|
| -shouldBe("testWindow.location.hash", "''");
|
| -
|
| -shouldBe("testWindow.location.href = 'data:text/plain,b'", "'data:text/plain,b'");
|
| -shouldBe("testWindow.location.protocol = 'data'", "'data'"); // Firefox throws an exception
|
| -shouldBe("testWindow.location.host = 'c'", "'c'"); // Firefox throws an exception
|
| -shouldBe("testWindow.location.hostname = 'd'", "'d'"); // Firefox throws an exception
|
| -shouldBe("testWindow.location.port = 'e'", "'e'"); // Firefox throws an exception
|
| -shouldBe("testWindow.location.pathname = 'f'", "'f'"); // Firefox throws an exception
|
| -shouldBe("testWindow.location.search = 'g'", "'g'");
|
| -shouldBe("testWindow.location.hash = 'h'", "'h'");
|
| -
|
| -shouldBe("testWindow.location.assign('data:text/plain,i')", "undefined");
|
| -shouldBe("testWindow.location.replace('data:text/plain,j')", "undefined");
|
| -shouldBe("testWindow.location.reload()", "undefined");
|
| -
|
| -shouldBe("testWindow.location.toString()", "'about:blank'");
|
| -shouldBe("testWindow.location.href", "'about:blank'");
|
| -shouldBe("testWindow.location.protocol", "'about:'");
|
| -shouldBe("testWindow.location.host", "''"); // Firefox throws an exception
|
| -shouldBe("testWindow.location.hostname", "''"); // Firefox throws an exception
|
| -shouldBe("testWindow.location.port", "''");
|
| -shouldBe("testWindow.location.pathname", "'blank'"); // Firefox returns the empty string
|
| -shouldBe("testWindow.location.search", "''");
|
| -shouldBe("testWindow.location.hash", "''");
|
| -
|
| -testWindow.close();
|
| -
|
| -if (window.testRunner) {
|
| - function doneHandler()
|
| - {
|
| - if (testWindow.closed) {
|
| - testRunner.notifyDone();
|
| - return;
|
| - }
|
| - setTimeout(doneHandler, 0);
|
| - }
|
| - doneHandler();
|
| -}
|
|
|