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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/inert/inert-inlines.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-inlines.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-inlines.html b/third_party/WebKit/LayoutTests/fast/dom/inert/inert-inlines.html
similarity index 73%
copy from third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-inlines.html
copy to third_party/WebKit/LayoutTests/fast/dom/inert/inert-inlines.html
index 8d95ae6b8e5640320e66cdab6dfa42c5b0430ef3..295b012ada1db8e6f5c681fcfd70e510f1ea9abd 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-inlines.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/inert/inert-inlines.html
@@ -9,14 +9,10 @@ dialog {
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<a id="a" href="javascript:void(0)">Click me</a>
-<button id="button">Click me</button>
-<div id="div" style="background-color: blue; width: 50px; height: 50px">Click meeee</div>
-<span id="span">Click me</span>
-<div id="dialog-parent" style="width: 50px; height: 50px">
- <span id="dialog-sibling">Click meeee</span>
- <dialog></dialog>
-</div>
+<a inert id="a" href="javascript:void(0)">Click me</a>
+<button inert id="button">Click me</button>
+<div inert id="div" style="background-color: blue; width: 50px; height: 50px">Click meeee</div>
+<span inert id="span">Click me</span>
<script>
function clickOn(element)
{
@@ -57,15 +53,8 @@ document.addEventListener('click', function(e) {
document.firedOn = true;
});
-document.getElementById('dialog-parent').addEventListener('click', function(e) {
- e.target.firedOn = true;
-});
-
-document.querySelector('dialog').showModal();
inertElements.forEach(function(id) {
expectedTarget = document;
- if (id == 'dialog-sibling')
- expectedTarget = document.getElementById('dialog-parent')
element = document.getElementById(id);
inertElementFiredOn = false;
expectedTarget.firedOn = false;

Powered by Google App Engine
This is Rietveld 408576698