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

Unified Diff: LayoutTests/fast/events/show-modal-dialog-onblur-onfocus.html

Issue 174073007: Remove deprecated window.showModalDialog() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/events/show-modal-dialog-onblur-onfocus.html
diff --git a/LayoutTests/fast/events/show-modal-dialog-onblur-onfocus.html b/LayoutTests/fast/events/show-modal-dialog-onblur-onfocus.html
deleted file mode 100644
index 5134234689a209c1b1ec80b71dfb882913966eb9..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/events/show-modal-dialog-onblur-onfocus.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<html>
-<head>
-<script>
- function runTests()
- {
- window.onfocus = onFocusFunc;
- window.onblur = onBlurFunc;
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.setCanOpenWindows();
- testRunner.waitUntilDone();
-
- // DumpRenderTreeWindow does not respond to focus events. Forcing onblur event so
- // that the results matches what you'll see in the browser.
- testRunner.setWindowIsKey(false);
- }
- showModalDialog("resources/modal-dialog.html");
- }
-
- function log(message)
- {
- var console = document.getElementById("console");
- var li = document.createElement("li");
- var text = document.createTextNode(message);
-
- console.appendChild(li);
- li.appendChild(text);
- }
-
- function onBlurFunc()
- {
- log("onblur fired. Should see this exactly once.");
- }
-
- function onFocusFunc()
- {
- log("ERROR: onfocus fired.");
- }
-</script>
-</head>
-
-<body onload="runTests()">
- <p>Pop up a modal dialog. Verifies that focus events are not fired while inside the message loop.</p><br/>
- <p>You need to disable pop-up blocker for this test to run successfully in the browser.</p>
- <ul id="console"></ul>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698