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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-focus-expected.txt

Issue 2428333002: <dialog>: don't focus non-form elements with tabindex < 0 when showModal() is called (Closed)
Patch Set: asdf Created 4 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: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-focus-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-focus-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-focus-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c690afa5a5355e82874dd8ef3e817b7a90d6b516
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-focus-expected.txt
@@ -0,0 +1,12 @@
+Tests focus when a modal dialog is opened.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.activeElement is document.querySelector("[tabindex='0']")
+PASS successfullyParsed is true
+
+TEST COMPLETE
+Negative tabindex shouldn't be focused
+A div or custom element with tabindex >= 0 should be focused
+Form controls without [autofocus] shouldn't have higher precendence

Powered by Google App Engine
This is Rietveld 408576698