Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: LayoutTests/fast/forms/post-popup-no-multiple-windows.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/post-popup-no-multiple-windows.html
diff --git a/LayoutTests/fast/forms/post-popup-no-multiple-windows.html b/LayoutTests/fast/forms/post-popup-no-multiple-windows.html
deleted file mode 100644
index e86efead46006e01c4cb0b68bba336d50ca251a2..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/forms/post-popup-no-multiple-windows.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.setCanOpenWindows(true);
- testRunner.overridePreference('WebKitSupportsMultipleWindows', false);
- testRunner.waitUntilDone();
-}
-
-function click(elmt)
-{
- var event = document.createEvent('MouseEvent');
- event.initEvent('click', true, true);
- elmt.dispatchEvent(event);
-}
-
-function runTest()
-{
- if (window.testRunner)
- testRunner.initialWindowCount = testRunner.windowCount();
- var button = document.getElementById("post-button");
- click(button);
- if (window.testRunner) {
- start = new Date();
- testInterval = setInterval(checkIfDone, 1);
- }
-}
-
-function checkIfDone ()
-{
- if (testRunner.globalFlag) {
- document.writeln('FAIL: Popup opened in a new window');
- clearInterval(testInterval);
- testRunner.notifyDone();
- } else if ((new Date() - start) > 10000) {
- document.writeln('FAIL: Popup did not open');
- clearInterval(testInterval);
- testRunner.notifyDone();
- }
-}
-
-window.addEventListener('load', runTest, true);
-</script>
-</head>
-<body>
- You need popups to be enabled to run this test.
- <form method="post" target="_blank" action="data:text/html;charset=utf-8,<html><head><script>function test() { if (!window.testRunner) return; testRunner.globalFlag=1; if (testRunner.initialWindowCount != testRunner.windowCount()) return; document.writeln('PASS: Popup opened in the same window'); testRunner.notifyDone(); }</script></head><body onload='test()'>The test passes if this page opens in the same window</body></html>">
- <input id="post-button" type="submit" value="Click me!" />
- </form>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698