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

Side by Side Diff: LayoutTests/fast/dom/HTMLDialogElement/dialog-return-value.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698