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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/inert/inert-node-is-unselectable.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-node-is-unselectable.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-node-is-unselectable.html b/third_party/WebKit/LayoutTests/fast/dom/inert/inert-node-is-unselectable.html
similarity index 61%
copy from third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-node-is-unselectable.html
copy to third_party/WebKit/LayoutTests/fast/dom/inert/inert-node-is-unselectable.html
index a393da64c540fa2a5aa7a588f9e0493daad22e5d..c83e6e13f8fcc1c6048ca5afa14e0526e988cfb6 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-node-is-unselectable.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/inert/inert-node-is-unselectable.html
@@ -4,15 +4,13 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-Here is a text node you can't select.
-<dialog>I'm selectable.</dialog>
+ <div inert>Here is a text node you can't select.</div>
+ <div>I'm selectable.</div>
<script>
-description('Test that inert nodes cannot be selected. The test passes if the only text you can select is inside the dialog.');
-
-dialog = document.querySelector('dialog');
-dialog.showModal();
document.execCommand('SelectAll');
shouldBeEqualToString('window.getSelection().toString()', "I'm selectable.");
+
+description('Test that inert nodes cannot be selected. The test passes if the only text you can select is inside the non-inert div.');
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698