OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <dialog id="test-dialog"></dialog> | 7 <dialog id="test-dialog"></dialog> |
8 <script> | 8 <script> |
9 description("Tests that dialog.returnValue is settable and returns the last valu
e set."); | 9 description("Tests that dialog.returnValue is settable and returns the last valu
e set."); |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 dialog.returnValue = 'Should not change because no argument to close()'; | 38 dialog.returnValue = 'Should not change because no argument to close()'; |
39 dialog.show(); | 39 dialog.show(); |
40 dialog.close(); | 40 dialog.close(); |
41 shouldBe("dialog.returnValue", "'Should not change because no argument to close(
)'"); | 41 shouldBe("dialog.returnValue", "'Should not change because no argument to close(
)'"); |
42 | 42 |
43 dialog.returnValue = 'Should not change because close() is invalid'; | 43 dialog.returnValue = 'Should not change because close() is invalid'; |
44 shouldThrow("dialog.close('blah')", "'InvalidStateError: An attempt was made to
use an object that is not, or is no longer, usable.'"); | 44 shouldThrow("dialog.close('blah')", "'InvalidStateError: An attempt was made to
use an object that is not, or is no longer, usable.'"); |
45 shouldBe("dialog.returnValue", "'Should not change because close() is invalid'")
; | 45 shouldBe("dialog.returnValue", "'Should not change because close() is invalid'")
; |
46 </script> | 46 </script> |
47 <script src="../../js/resources/js-test-post.js"></script> | |
48 </body> | 47 </body> |
49 </html> | 48 </html> |
OLD | NEW |