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

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

Issue 100963003: Use V8TRYCATCH_FOR_V8STRINGRESOURCE() macro instead of toCoreStringWithUndefinedOrNullCheck() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove toCoreString(v8::Handle<v8::Value> value) Created 7 years 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
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