| OLD | NEW |
| 1 Tests default positioning of non-anchored dialogs. | 1 Tests 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 Dialog should be centered in the viewport. |
| 7 PASS dialog.getBoundingClientRect().top is expectedTop | 7 PASS dialog.getBoundingClientRect().top is expectedTop |
| 8 PASS dialog.getBoundingClientRect().top is expectedTop | 8 PASS dialog.getBoundingClientRect().top is expectedTop |
| 9 | 9 |
| 10 Dialog should be recentered if show() is called after close(). | 10 Dialog should be recentered if show() is called after close(). |
| 11 PASS dialog.getBoundingClientRect().top is expectedTop | 11 PASS dialog.getBoundingClientRect().top is expectedTop |
| (...skipping 23 matching lines...) Expand all Loading... |
| 35 Dialog's position should survive after close() and show(). | 35 Dialog's position should survive after close() and show(). |
| 36 PASS dialog.style.top is expectedTop | 36 PASS dialog.style.top is expectedTop |
| 37 | 37 |
| 38 Dialog is recentered if show() is called after removing 'open' | 38 Dialog is recentered if show() is called after removing 'open' |
| 39 PASS dialog.getBoundingClientRect().top is expectedTop | 39 PASS dialog.getBoundingClientRect().top is expectedTop |
| 40 | 40 |
| 41 Dialog should not be centered if show() was called when an ancestor had display
'none'. | 41 Dialog should not be centered if show() was called when an ancestor had display
'none'. |
| 42 PASS dialog.getBoundingClientRect().top is expectedTop | 42 PASS dialog.getBoundingClientRect().top is expectedTop |
| 43 | 43 |
| 44 Test that setting 'top' on dialog results in the same position as for a plain, a
bsolutely positioned span. | 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 | 45 PASS dialog.getBoundingClientRect().top is expectedTop |
| 46 PASS dialog.offsetTop is plainSpan.offsetTop | 46 PASS dialog.getBoundingClientRect().top is expectedTop |
| 47 | 47 |
| 48 Test that setting 'bottom' on dialog results in the same position as for a plain
, absolutely positioned span. | 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 | 49 PASS dialog.getBoundingClientRect().bottom is plainSpan.getBoundingClientRect().
bottom |
| 50 PASS dialog.offsetBottom is plainSpan.offsetBottom | 50 PASS dialog.getBoundingClientRect().bottom is plainSpan.getBoundingClientRect().
bottom |
| 51 | 51 |
| 52 Test that fixed positioning for dialog has same behavior as for a plain span. | 52 Test that fixed positioning for dialog has same behavior as for a plain span. |
| 53 PASS dialog.offsetTop is plainSpan.offsetTop | 53 PASS dialog.getBoundingClientRect().top is plainSpan.getBoundingClientRect().top |
| 54 PASS dialog.offsetTop is plainSpan.offsetTop | 54 PASS dialog.getBoundingClientRect().top is plainSpan.getBoundingClientRect().top |
| 55 | 55 |
| 56 Test that static position for a non-modal dialog has the same behavior as for a
plain span. | 56 Test that static position for a non-modal dialog has the same behavior as for a
plain span. |
| 57 PASS dialog.offsetTop is expectedTop | 57 PASS dialog.getBoundingClientRect().top is expectedTop |
| 58 | 58 |
| 59 Test that relative position for a non-modal dialog has the same behavior as for
a plain span. | 59 Test that relative position for a non-modal dialog has the same behavior as for
a plain span. |
| 60 PASS dialog.offsetTop is expectedTop | 60 PASS dialog.getBoundingClientRect().top is expectedTop |
| 61 PASS successfullyParsed is true | 61 PASS successfullyParsed is true |
| 62 | 62 |
| 63 TEST COMPLETE | 63 TEST COMPLETE |
| 64 | 64 |
| OLD | NEW |