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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/script-tests/javascript-url-exception-isolation.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 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
OLDNEW
(Empty)
1 description("Exceptions thrown in javascript URLs should not propagate to the ma in script.")
2
3 var subframe = document.createElement("iframe");
4 document.body.appendChild(subframe);
5
6 var caughtException = false;
7
8 // Runtime exception.
9 try {
10 subframe.src = 'javascript:throw 42';
11 } catch(e) {
12 caughtException = true;
13 }
14 shouldBeFalse('caughtException');
15
16 // Compile-time exception.
17 try {
18 subframe.src = 'javascript:<html></html>';
19 } catch(e) {
20 caughtException = true;
21 }
22 shouldBeFalse('caughtException');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698