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

Unified Diff: LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-sameorigin.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
Index: LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-sameorigin.js
diff --git a/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-sameorigin.js b/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-sameorigin.js
index 6186cb82d8bec7bd58b58ec094da5e847fa243dc..24230344d23ad3fea210925d648d1991a2ae7188 100644
--- a/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-sameorigin.js
+++ b/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-sameorigin.js
@@ -1 +1,5 @@
+self.onerror = function (message, filename, lineno, column) {
+ postMessage({ 'message': message, 'filename': filename, 'lineno': lineno, 'column': column });
+};
+
importScripts('/workers/resources/worker-importScripts-throw.js');

Powered by Google App Engine
This is Rietveld 408576698