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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/synthetic-click-inert.html

Issue 2671603003: Move DIALOG element tests to html/dialog/. (Closed)
Patch Set: Created 3 years, 11 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/synthetic-click-inert.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/synthetic-click-inert.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/synthetic-click-inert.html
deleted file mode 100644
index ea67ee3e64717d590d936c579dafd3cc18e7efab..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/synthetic-click-inert.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<html>
-<style>
-dialog {
- /* Don't needlessly span the whole screen. */
- width: 50px;
-}
-</style>
-<body>
-<script src="../../../resources/js-test.js"></script>
-<button>Click me</button>
-<div id="div">Click me too</div>
-<dialog></dialog>
-<script>
-description('Test that inert nodes still get programmatic click events');
-dialog = document.querySelector('dialog');
-dialog.showModal();
-
-button = document.querySelector('button');
-div = document.getElementById('div');
-clicked = null;
-
-[button, div].forEach(function(element) {
- element.addEventListener('click', function(e) { clicked = element; });
- expectedElement = element;
-
- clicked = null;
- debug('Calling click() on ' + element.tagName);
- element.click();
- shouldBe('clicked', 'expectedElement');
-
- clicked = null;
- debug('Calling dispatchEvent() on ' + element.tagName);
- element.dispatchEvent(new Event('click'));
- shouldBe('clicked', 'expectedElement');
-});
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698