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

Unified Diff: LayoutTests/http/tests/resources/js-test-pre.js

Issue 19514006: Explicitly test same/cross-origin importScripts() effect on worker.onerror. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase. Created 7 years, 5 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: LayoutTests/http/tests/resources/js-test-pre.js
diff --git a/LayoutTests/http/tests/resources/js-test-pre.js b/LayoutTests/http/tests/resources/js-test-pre.js
index f4f502f00db641d00a2e2ca9c2c241bf9a92eca0..319277ba0cc48130067ac638ce201477ec28d814 100644
--- a/LayoutTests/http/tests/resources/js-test-pre.js
+++ b/LayoutTests/http/tests/resources/js-test-pre.js
@@ -72,10 +72,12 @@ var description, debug, successfullyParsed, errorMessage;
if (!isWorker())
insertStyleSheet();
- self.onerror = function(message)
- {
- errorMessage = message;
- };
+ if (!self.isOnErrorTest) {
+ self.onerror = function(message)
+ {
+ errorMessage = message;
+ };
+ }
})();
« no previous file with comments | « LayoutTests/fast/js/resources/js-test-pre.js ('k') | LayoutTests/http/tests/workers/resources/worker-importScripts-error.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698