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; |