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

Side by Side Diff: LayoutTests/fast/dom/Window/showModalDialog-invalid-arguments.html

Issue 174073007: Remove deprecated window.showModalDialog() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months 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
(Empty)
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <script>
7 description("Checks that passing invalid strings to window.showModalDialog() is properly handled.");
8
9 if (window.testRunner)
10 testRunner.setCanOpenWindows();
11
12 var nonConvertibleToString = { toString: function() { throw "Exception in toStri ng()"; } };
13 var newWindow = null;
14 shouldThrow("newWindow = window.showModalDialog(nonConvertibleToString)", "'Exce ption in toString()'");
15 shouldBeNull("newWindow");
16 shouldThrow("newWindow = window.showModalDialog('about:blank', '', nonConvertibl eToString)", "'Exception in toString()'");
17 shouldBeNull("newWindow");
18 </script>
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698