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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.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/dialog-close-event.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html
deleted file mode 100644
index ca843ec67b452fb5b481c37d6563050e4da9e451..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<dialog></dialog>
-<script>
-description("Test that dialog receives a close event upon closing.");
-jsTestIsAsync = true;
-
-document.addEventListener('close', function(event) {
- testFailed("The 'close' event unexpectedly bubbled.");
-});
-
-closedCount = 0;
-dialog = document.querySelector('dialog');
-dialog.addEventListener('close', function(event) {
- closedCount++;
- selfDialog = this;
- shouldBe('selfDialog', 'dialog');
- shouldBeFalse('dialog.open');
- shouldBeFalse('event.cancelable');
- event.preventDefault();
-
- if (closedCount == 1) {
- dialog.show();
- dialog.close();
- // dialog's close event handler shouldn't be called synchronously.
- shouldBe('closedCount', '1');
- } else if (closedCount == 2) {
- finishJSTest();
- }
-});
-
-dialog.show();
-dialog.close();
-
-// Verify that preventDefault() didn't cancel closing.
-shouldBeFalse('dialog.open');
-
-// dialog's close event handler shouldn't be called synchronously.
-shouldBe('closedCount', '0');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698