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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/inert/inert-label-focus.html

Issue 2088453002: Implement the inert attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up some tests Created 4 years, 6 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/inert/inert-label-focus.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-label-focus.html b/third_party/WebKit/LayoutTests/fast/dom/inert/inert-label-focus.html
similarity index 87%
copy from third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-label-focus.html
copy to third_party/WebKit/LayoutTests/fast/dom/inert/inert-label-focus.html
index f98cc72f0b3c98014788f0b7240a4a6f7c6091c8..d32669f1f6e7399b5ffcf886b1f2012245a81176 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-label-focus.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/inert/inert-label-focus.html
@@ -1,11 +1,9 @@
<!DOCTYPE html>
<html>
<script src="../../../resources/js-test.js"></script>
-<label for="submit">Label for Submit</label>
-<dialog>
- <input id="text" type="text">
- <input id="submit" type="submit">
-</dialog>
+<label inert for="submit">Label for Submit</label>
+<input id="text" type="text">
+<input id="submit" type="submit">
<script>
function clickOn(element) {
if (!window.eventSender)
@@ -29,7 +27,6 @@ function clickOn(element) {
description('Tests focusing of an inert label for a non-inert target. label.focus() should send focus ' +
'to the target, but clicking the label should be the same as clicking on the document body.');
-document.querySelector('dialog').showModal();
document.querySelector('#text').focus();
debug('Testing that calling focus() on label sends focus to its target.');

Powered by Google App Engine
This is Rietveld 408576698