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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/multiple-centered-dialogs.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/multiple-centered-dialogs.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/multiple-centered-dialogs.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/multiple-centered-dialogs.html
deleted file mode 100644
index c62979697fc574d1fad1ddaa1ec26fb7edf8149b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/multiple-centered-dialogs.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<html>
-<style>
-body {
- height: 10000px;
-}
-
-dialog {
- padding: 0;
- margin: 0;
- height: 50px;
- width: 50px;
-}
-
-#console {
- position: fixed;
-}
-</style>
-<body>
-<dialog id="top-dialog"></dialog>
-<dialog id="first-middle-dialog"></dialog>
-<dialog id="second-middle-dialog" style="left: 100px"></dialog>
-<dialog id="bottom-dialog"></dialog>
-</body>
-<script src="../../../resources/js-test.js"></script>
-<script>
-debug('Test that multiple dialogs are centered properly. You should see four ' +
- 'boxes: one on the top row, two on the middle, and one on the bottom.');
-
-function expectedTop(dialog) {
- return window.scrollY + Math.floor((document.documentElement.clientHeight - dialog.offsetHeight) / 2);
-}
-
-function showAndTest(id) {
- debug('showing ' + id);
- dialog = document.getElementById(id);
- dialog.showModal();
- shouldBe('dialog.offsetTop', 'expectedTop(dialog)');
-}
-
-showAndTest('top-dialog');
-
-window.scroll(0, 100);
-showAndTest('first-middle-dialog');
-showAndTest('second-middle-dialog');
-
-window.scroll(0, 200);
-showAndTest('bottom-dialog');
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698