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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/abspos-dialog-layout-expected.txt

Issue 2671603003: Move DIALOG element tests to html/dialog/. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 Tests layout of absolutely positioned modal dialogs.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 showModal() should center in the viewport.
8 PASS dialog.getBoundingClientRect().top is centeredTop
9
10 The dialog is a positioned element, so the top and bottom should not have style auto.
11 PASS window.getComputedStyle(dialog).top is "790px"
12 PASS window.getComputedStyle(dialog).bottom is "-210px"
13
14 Dialog should be recentered if showModal() is called after close().
15 PASS dialog.getBoundingClientRect().top is centeredTop
16
17 Dialog should not recenter on relayout.
18 PASS dialog.getBoundingClientRect().top is expectedTop
19
20 A tall dialog should be positioned at the top of the viewport.
21 PASS dialog.getBoundingClientRect().top is 0
22
23 The dialog should be centered regardless of the presence of a horizontal scrollb ar.
24 PASS dialog.getBoundingClientRect().top is centeredTop
25
26 Centering should work when dialog is inside positioned containers.
27 PASS dialog.getBoundingClientRect().top is centeredTop
28 PASS dialog.getBoundingClientRect().top is centeredTop
29
30 A centered dialog's position should survive becoming display:none temporarily.
31 PASS dialog.getBoundingClientRect().top is expectedTop
32
33 Dialog should lose centering when removed from the document.
34 PASS dialog.getBoundingClientRect().top is relativeContainer.getBoundingClientRe ct().top
35
36 Dialog's specified position should survive after close() and showModal().
37 PASS dialog.getBoundingClientRect().top is expectedTop
38
39 Dialog should be recentered if showModal() is called after removing 'open'.
40 PASS dialog.getBoundingClientRect().top is centeredTop
41
42 Dialog should not be centered if showModal() was called when an ancestor had dis play 'none'.
43 PASS dialog.getBoundingClientRect().top is document.body.getBoundingClientRect() .bottom
44
45 A dialog with specified 'top' should be positioned as usual
46 PASS dialog.getBoundingClientRect().top + window.scrollY is offset
47
48 A dialog with specified 'bottom' should be positioned as usual
49 PASS dialog.getBoundingClientRect().bottom + window.scrollY is window.innerHeigh t - offset
50 PASS successfullyParsed is true
51
52 TEST COMPLETE
53
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698