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

Unified Diff: LayoutTests/fast/js/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
« no previous file with comments | « no previous file | LayoutTests/http/tests/resources/js-test-pre.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/js/resources/js-test-pre.js
diff --git a/LayoutTests/fast/js/resources/js-test-pre.js b/LayoutTests/fast/js/resources/js-test-pre.js
index d2cfc497520653e022ffeb65cb8e91ba195ecf6a..aed7e2195b3e12f6b3e7821e8822ebe22823f4c4 100644
--- a/LayoutTests/fast/js/resources/js-test-pre.js
+++ b/LayoutTests/fast/js/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 | « no previous file | LayoutTests/http/tests/resources/js-test-pre.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698