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

Unified Diff: LayoutTests/http/tests/workers/worker-importScripts-onerror-sameorigin.html

Issue 19605005: Add 'self.onerror' to Worker tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test only. 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/worker-importScripts-onerror-sameorigin.html
diff --git a/LayoutTests/http/tests/workers/worker-importScripts-onerror-sameorigin.html b/LayoutTests/http/tests/workers/worker-importScripts-onerror-sameorigin.html
index e1a412aadf20288ac08e2d7712bd76c010c126dd..e7a1ea03a1c7d8dbab7f7ef49080dda05e27954f 100644
--- a/LayoutTests/http/tests/workers/worker-importScripts-onerror-sameorigin.html
+++ b/LayoutTests/http/tests/workers/worker-importScripts-onerror-sameorigin.html
@@ -14,6 +14,15 @@
var worker = new Worker('resources/worker-importscripts-onerror-sameorigin.js');
+ var workerOnerror;
+ worker.onmessage = function (e) {
+ workerOnerror = e.data;
+ shouldBeEqualToString("workerOnerror.message", "Uncaught This is a custom error message.");
+ shouldBeEqualToString("workerOnerror.url", "http://127.0.0.1:8000/workers/resources/worker-importscripts-onerror-sameorigin.js");
+ shouldEvaluateTo("workerOnerror.line", 5);
+ shouldEvaluateTo("workerOnerror.column", 0);
+ };
+
var onerrorMessage, onerrorURL, onerrorLine;
worker.onerror = function (e) {
onerrorMessage = e.message;

Powered by Google App Engine
This is Rietveld 408576698