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

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

Issue 90243003: Use V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID() in V8Window::openMethodCustom() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Window/open-invalid-arguments-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.open() is properly ha ndled.");
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.open(nonConvertibleToString)", "'Exception in to String()'");
15 shouldBeNull("newWindow");
16 shouldThrow("newWindow = window.open('about:blank', nonConvertibleToString)", "' Exception in toString()'");
17 shouldBeNull("newWindow");
18 shouldThrow("newWindow = window.open('about:blank', 'frameName', nonConvertibleT oString)", "'Exception in toString()'");
19 shouldBeNull("newWindow");
20 </script>
21 </body>
22 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Window/open-invalid-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698