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> |