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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/inert/simulated-click-inert.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/simulated-click-inert.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/simulated-click-inert.html b/third_party/WebKit/LayoutTests/fast/dom/inert/simulated-click-inert.html
similarity index 84%
copy from third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/simulated-click-inert.html
copy to third_party/WebKit/LayoutTests/fast/dom/inert/simulated-click-inert.html
index 5454a8132e99a25b7c0e20994d3970a3b5c9e6a9..e57b0cfd06d658d26d6387e12b8daa6d4316d9ff 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/simulated-click-inert.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/inert/simulated-click-inert.html
@@ -26,18 +26,19 @@ function runTest()
if (window.testRunner)
testRunner.dumpAsText();
- document.querySelector('dialog').showModal();
clickOn(document.querySelector('label'));
document.querySelector('div').textContent = document.getElementById('target').checked ? 'PASS' : 'FAIL';
}
</script>
</head>
<body onload="runTest()">
- <p>Ensure that simulated click is still dispatched to an inert node.
+ <p>Ensure that simulated click is still dispatched to an inert node.
To test manually, click the CLICK ME label and verify it does change the value of the checkbox.</p>
+ <div inert id="container">
<div>
</div>
<input type="checkbox" id="target">
- <dialog><label for="target">CLICK ME</label></dialog>
+ </div>
+ <label for="target">CLICK ME</label>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698