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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/script-tests/javascript-url-exception-isolation.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/script-tests/javascript-url-exception-isolation.js b/third_party/WebKit/LayoutTests/fast/dom/script-tests/javascript-url-exception-isolation.js
deleted file mode 100644
index 0891c8e570c302b6ebe620fd0675cb34213b0b53..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/script-tests/javascript-url-exception-isolation.js
+++ /dev/null
@@ -1,22 +0,0 @@
-description("Exceptions thrown in javascript URLs should not propagate to the main script.")
-
-var subframe = document.createElement("iframe");
-document.body.appendChild(subframe);
-
-var caughtException = false;
-
-// Runtime exception.
-try {
- subframe.src = 'javascript:throw 42';
-} catch(e) {
- caughtException = true;
-}
-shouldBeFalse('caughtException');
-
-// Compile-time exception.
-try {
- subframe.src = 'javascript:<html></html>';
-} catch(e) {
- caughtException = true;
-}
-shouldBeFalse('caughtException');

Powered by Google App Engine
This is Rietveld 408576698