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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-autofocus-multiple-times.html

Issue 2671603003: Move DIALOG element tests to html/dialog/. (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-autofocus-multiple-times.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-autofocus-multiple-times.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-autofocus-multiple-times.html
deleted file mode 100644
index 6abf6dfae065ff6430204dacd0d4e4b7e23fb04d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-autofocus-multiple-times.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-<script src="../../forms/resources/common.js"></script>
-<script>
-description('Tests autofocus is run every time a dialog is opened.');
-
-function test() {
- shouldBe('document.activeElement', 'document.getElementById("outer-button")');
-
- var focusCount = 0;
- input2.onfocus = function() { focusCount += 1 };
-
- var expectedFocusCount = 3;
- for (i = 0; i < expectedFocusCount; i++) {
- dlg.show();
- shouldBe('document.activeElement', 'document.getElementById("input2")');
- input1.focus();
- shouldBe('document.activeElement', 'document.getElementById("input1")');
- dlg.close();
- }
-
- shouldBe(focusCount.toString(), expectedFocusCount.toString());
-
- finishJSTest();
-}
-
-jsTestIsAsync = true;
-waitUntilLoadedAndAutofocused(test);
-</script>
-</head>
-<body>
-<button id="outer-button" autofocus></button>
-<dialog id="dlg">
- <!-- Unfocusable elements with [autofocus] should be ignored. -->
- <input autofocus disabled>
- <textarea autofocus hidden></textarea>
- <input id="input1"></input>
- <input id="input2" autofocus></input>
-</dialog>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698