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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-layout.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/non-modal-dialog-layout.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-layout.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-layout.html
deleted file mode 100644
index 37385848ec9abe05284d54ebf181727160e58dac..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/non-modal-dialog-layout.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<link href="resources/dialog-layout.css" rel="stylesheet">
-<script src="../../../resources/js-test.js"></script>
-<div id="absolute-div">
- <div id="relative-div">
- <dialog id="dialog">It is my dialog.</dialog>
- </div>
-</div>
-<script>
-description('Tests layout of non-modal dialogs.');
-
-dialog = document.querySelector('#dialog');
-div = document.querySelector('#div-dialog');
-relativeContainer = document.querySelector('#relative-div');
-offset = 50;
-dialog.style.top = offset + 'px';
-dialog.style.left = offset + 'px';
-
-(function() {
- debug('<br>Test absolute position');
- dialog.style.position = 'absolute';
- dialog.show();
- shouldBe('dialog.getBoundingClientRect().top', 'relativeContainer.getBoundingClientRect().top + offset');
- shouldBe('dialog.getBoundingClientRect().left', 'relativeContainer.getBoundingClientRect().left + offset');
-}());
-
-(function() {
- debug('<br>Test static position');
- dialog.style.position = 'static';
- dialog.show();
- shouldBe('dialog.getBoundingClientRect().top', 'relativeContainer.getBoundingClientRect().top');
- shouldBe('dialog.getBoundingClientRect().left', 'relativeContainer.getBoundingClientRect().left');
- dialog.close();
-}());
-
-(function() {
- debug('<br>Test relative position');
- dialog.style.position = 'relative';
- dialog.show();
- shouldBe('dialog.getBoundingClientRect().top', 'relativeContainer.getBoundingClientRect().top + offset');
- shouldBe('dialog.getBoundingClientRect().left', 'relativeContainer.getBoundingClientRect().left + offset');
- dialog.close();
-}());
-
-(function() {
- debug('<br>Test fixed position');
- dialog.style.position = 'fixed';
- dialog.show();
- shouldBe('dialog.getBoundingClientRect().top', 'offset');
- shouldBe('dialog.getBoundingClientRect().left', 'offset');
- dialog.close();
-}());
-</script>

Powered by Google App Engine
This is Rietveld 408576698