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

Unified Diff: LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-crossorigin.js

Issue 19605005: Add 'self.onerror' to Worker tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: yay. 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/workers/resources/worker-importscripts-onerror-redirect-to-crossorigin.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-crossorigin.js
diff --git a/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-crossorigin.js b/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-crossorigin.js
index 0ea785c6e66255b400cf81178490552fe6438ee6..55b41928010a11aef5e5bcfaba791aa3175c70a6 100644
--- a/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-crossorigin.js
+++ b/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-crossorigin.js
@@ -1 +1,5 @@
+self.onerror = function (message, filename, lineno, column) {
+ postMessage({ 'message': message, 'filename': filename, 'lineno': lineno, 'column': column });
+};
+
importScripts('http://localhost:8000/workers/resources/worker-importScripts-throw.js');
« no previous file with comments | « no previous file | LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-redirect-to-crossorigin.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698