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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/submit-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/submit-dialog-close-event.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/submit-dialog-close-event.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/submit-dialog-close-event.html
deleted file mode 100644
index bbeb5927b41ed3c2d8d3272be9a1aa3013dba353..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/submit-dialog-close-event.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<dialog>
- <form method="dialog">
- <input id="goodbye" type="submit" value="Goodbye">
- <input id="hello" type="submit" value="Hello">
- </form>
-</dialog>
-<script>
-description('Tests submitting a dialog on a close event triggered by a previous submission.');
-
-window.jsTestIsAsync = true;
-function testGoodbye()
-{
- dialog = document.querySelector('dialog');
- dialog.show();
- dialog.addEventListener('close', function f() {
- dialog.removeEventListener('close', f);
- shouldBeFalse('dialog.open');
- shouldBeEqualToString('dialog.returnValue', 'Goodbye');
- testHello();
- });
- document.querySelector('#goodbye').click();
-}
-
-function testHello()
-{
- dialog = document.querySelector('dialog');
- dialog.show();
- dialog.addEventListener('close', function() {
- shouldBeFalse('dialog.open');
- shouldBeEqualToString('dialog.returnValue', 'Hello');
- finishJSTest();
- });
- document.querySelector('#hello').click();
-}
-
-testGoodbye();
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698