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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-return-value.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-return-value.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-return-value.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-return-value.html
deleted file mode 100644
index e051e5b963012e20e7d990db517404d7c6851f8a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-return-value.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<dialog id="test-dialog"></dialog>
-<script>
-description("Tests that dialog.returnValue is settable and returns the last value set.");
-
-dialog = document.getElementById('test-dialog');
-shouldBe("dialog.returnValue", "''");
-
-dialog.returnValue = 'Setting value directly';
-shouldBe("dialog.returnValue", "'Setting value directly'");
-
-dialog.returnValue = null;
-shouldBe("dialog.returnValue", "'null'");
-
-dialog.returnValue = '';
-shouldBe("dialog.returnValue", "''");
-
-dialog.returnValue = 7;
-shouldBe("dialog.returnValue", "'7'");
-
-dialog.show();
-dialog.close('Return value set from close()');
-shouldBe("dialog.returnValue", "'Return value set from close()'");
-
-dialog.show();
-dialog.close('');
-shouldBe("dialog.returnValue", "''");
-
-dialog.show();
-dialog.close(null);
-shouldBe("dialog.returnValue", "'null'");
-
-dialog.returnValue = 'Should not change because no argument to close()';
-dialog.show();
-dialog.close();
-shouldBe("dialog.returnValue", "'Should not change because no argument to close()'");
-
-dialog.returnValue = 'Should not change because of undefined argument to close()';
-dialog.show();
-dialog.close(undefined);
-shouldBe("dialog.returnValue", "'Should not change because of undefined argument to close()'");
-
-dialog.returnValue = 'Should not change because close() is invalid';
-shouldThrow("dialog.close('blah')", '"InvalidStateError: Failed to execute \'close\' on \'HTMLDialogElement\': The element does not have an \'open\' attribute, and therefore cannot be closed."');
-shouldBe("dialog.returnValue", "'Should not change because close() is invalid'");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698