| OLD | NEW |
| 1 Tests layout of fixed positioned dialogs. | 1 Tests layout of fixed positioned 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 | 6 |
| 7 showModal() should center in the viewport. | 7 showModal() should center in the viewport. |
| 8 PASS dialog.getBoundingClientRect().top is centeredTop | 8 PASS dialog.getBoundingClientRect().top is centeredTop |
| 9 | 9 |
| 10 The dialog is a positioned element, so the top and bottom should not have style
auto. | 10 The dialog is a positioned element, so the top and bottom should not have style
auto. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 PASS dialog.getBoundingClientRect().top is centeredTop | 21 PASS dialog.getBoundingClientRect().top is centeredTop |
| 22 | 22 |
| 23 Centering should work when dialog is inside positioned containers. | 23 Centering should work when dialog is inside positioned containers. |
| 24 PASS dialog.getBoundingClientRect().top is centeredTop | 24 PASS dialog.getBoundingClientRect().top is centeredTop |
| 25 PASS dialog.getBoundingClientRect().top is centeredTop | 25 PASS dialog.getBoundingClientRect().top is centeredTop |
| 26 | 26 |
| 27 A centered dialog's position should survive becoming display:none temporarily. | 27 A centered dialog's position should survive becoming display:none temporarily. |
| 28 PASS dialog.getBoundingClientRect().top is expectedTop | 28 PASS dialog.getBoundingClientRect().top is expectedTop |
| 29 | 29 |
| 30 Dialog should lose centering when removed from the document. | 30 Dialog should lose centering when removed from the document. |
| 31 FAIL dialog.getBoundingClientRect().top should be 0. Was 800. | 31 FAIL dialog.getBoundingClientRect().top should be 0. Was 820. |
| 32 | 32 |
| 33 Dialog's specified position should survive after close() and showModal(). | 33 Dialog's specified position should survive after close() and showModal(). |
| 34 PASS dialog.getBoundingClientRect().top is expectedTop | 34 PASS dialog.getBoundingClientRect().top is expectedTop |
| 35 | 35 |
| 36 Dialog should not be centered if showModal() was called when an ancestor had dis
play 'none'. | 36 Dialog should not be centered if showModal() was called when an ancestor had dis
play 'none'. |
| 37 FAIL dialog.getBoundingClientRect().top should be 0. Was 10016. | 37 FAIL dialog.getBoundingClientRect().top should be 0. Was 10016. |
| 38 | 38 |
| 39 A dialog with specified 'top' should be positioned as usual | 39 A dialog with specified 'top' should be positioned as usual |
| 40 PASS dialog.getBoundingClientRect().top is offset | 40 PASS dialog.getBoundingClientRect().top is offset |
| 41 PASS successfullyParsed is true | 41 PASS successfullyParsed is true |
| 42 | 42 |
| 43 TEST COMPLETE | 43 TEST COMPLETE |
| 44 | 44 |
| OLD | NEW |