OLD | NEW |
1 Tests default positioning of non-anchored dialogs. | 1 Tests default positioning of non-anchored dialogs. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
| 6 Dialog should be centered in the viewport. |
6 PASS dialog.getBoundingClientRect().top is expectedTop | 7 PASS dialog.getBoundingClientRect().top is expectedTop |
7 PASS dialog.getBoundingClientRect().top is expectedTop | 8 PASS dialog.getBoundingClientRect().top is expectedTop |
| 9 |
| 10 Dialog should be recentered if show() is called after close(). |
| 11 PASS dialog.getBoundingClientRect().top is expectedTop |
| 12 |
| 13 Dialog should not be recentered on a relayout. |
| 14 PASS dialog.getBoundingClientRect().top is expectedTop |
| 15 |
| 16 A tall dialog should be positioned at the top of the viewport. |
8 PASS dialog.getBoundingClientRect().top is 0 | 17 PASS dialog.getBoundingClientRect().top is 0 |
| 18 PASS dialog.getBoundingClientRect().top is 0 |
| 19 |
| 20 The dialog should be centered regardless of the presence of a horizontal scrollb
ar. |
| 21 PASS dialog.getBoundingClientRect().top is expectedTop |
| 22 PASS dialog.getBoundingClientRect().top is expectedTop |
| 23 |
| 24 Test that centering works when dialog is inside positioned containers. |
9 PASS dialog.getBoundingClientRect().top is expectedTop | 25 PASS dialog.getBoundingClientRect().top is expectedTop |
10 PASS dialog.getBoundingClientRect().top is expectedTop | 26 PASS dialog.getBoundingClientRect().top is expectedTop |
11 PASS dialog.getBoundingClientRect().top is expectedTop | 27 PASS dialog.getBoundingClientRect().top is expectedTop |
12 PASS dialog.offsetTop is plainDiv.offsetTop | 28 |
13 PASS dialog.offsetBottom is plainDiv.offsetBottom | 29 Dialog's position should survive after becoming display:none temporarily. |
14 PASS dialog.offsetTop is plainDiv.offsetTop | 30 PASS dialog.getBoundingClientRect().top is expectedTop |
| 31 |
| 32 Dialog's position should survive after being re-added to document without anothe
r call to show(). |
| 33 PASS dialog.getBoundingClientRect().top is expectedTop |
| 34 |
| 35 Dialog's position should survive after close() and show(). |
| 36 PASS dialog.style.top is expectedTop |
| 37 |
| 38 Dialog is recentered if show() is called after removing 'open' |
| 39 PASS dialog.getBoundingClientRect().top is expectedTop |
| 40 |
| 41 Dialog should not be centered if show() was called when an ancestor had display
'none'. |
| 42 PASS dialog.getBoundingClientRect().top is expectedTop |
| 43 |
| 44 Test that setting 'top' on dialog results in the same position as for a plain, a
bsolutely positioned span. |
| 45 PASS dialog.offsetTop is plainSpan.offsetTop |
| 46 PASS dialog.offsetTop is plainSpan.offsetTop |
| 47 |
| 48 Test that setting 'bottom' on dialog results in the same position as for a plain
, absolutely positioned span. |
| 49 PASS dialog.offsetBottom is plainSpan.offsetBottom |
| 50 PASS dialog.offsetBottom is plainSpan.offsetBottom |
| 51 |
| 52 Test that fixed positioning for dialog has same behavior as for a plain span. |
| 53 PASS dialog.offsetTop is plainSpan.offsetTop |
| 54 PASS dialog.offsetTop is plainSpan.offsetTop |
| 55 |
| 56 Test that static position for a non-modal dialog has the same behavior as for a
plain span. |
15 PASS dialog.offsetTop is expectedTop | 57 PASS dialog.offsetTop is expectedTop |
| 58 |
| 59 Test that relative position for a non-modal dialog has the same behavior as for
a plain span. |
16 PASS dialog.offsetTop is expectedTop | 60 PASS dialog.offsetTop is expectedTop |
17 PASS successfullyParsed is true | 61 PASS successfullyParsed is true |
18 | 62 |
19 TEST COMPLETE | 63 TEST COMPLETE |
20 | 64 |
OLD | NEW |