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

Unified Diff: LayoutTests/fast/workers/worker-script-error.html

Issue 20679002: Add 'colno' attribute to ErrorEvent interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/fast/workers/worker-script-error.html
diff --git a/LayoutTests/fast/workers/worker-script-error.html b/LayoutTests/fast/workers/worker-script-error.html
index 64813c71e94d3435bcda0569932a101c6eada8ee..416cb91aa1be225c5219e81c2bbf1b850a90ab32 100644
--- a/LayoutTests/fast/workers/worker-script-error.html
+++ b/LayoutTests/fast/workers/worker-script-error.html
@@ -51,7 +51,7 @@ function testScriptErrorUnhandled()
try {
var worker = new Worker("resources/worker-script-error-unhandled.js");
worker.onerror = function(evt) {
- log("PASS: onerror invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + ".");
+ log("PASS: onerror invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + " and column " + evt.colno + ".");
runNextTest();
return false;
}
@@ -67,7 +67,7 @@ function testScriptErrorAddEventListener()
var worker = new Worker("resources/worker-script-error-unhandled.js");
worker.addEventListener("error",
function(evt) {
- log("PASS: event listener invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + ".");
+ log("PASS: event listener invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + " and column " + evt.colno + ".");
runNextTest();
evt.preventDefault();
}, false);
@@ -83,7 +83,7 @@ function testErrorInHandlingScriptError()
var worker = new Worker("resources/worker-error-in-handling-script-error.js");
var errorCount = 0;
worker.onerror = function(evt) {
- log("PASS: onerror invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + ".");
+ log("PASS: onerror invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + " and column " + evt.colno + ".");
++errorCount;
// Second error happens in the onerror handler. Run next test only when it's reported.
if (errorCount == 2)
@@ -104,7 +104,7 @@ function testScriptErrorBubbledAndHandledInWorker()
log("message from worker: \"" + evt.data + "\".");
}
worker.onerror = function(evt) {
- log("PASS: onerror invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + ".");
+ log("PASS: onerror invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + " and column " + evt.colno + ".");
runNextTest();
return false;
}
@@ -119,7 +119,7 @@ function testScriptErrorBubbledAndReportedToUser()
try {
var worker = new Worker("resources/worker-script-error-bubbled.js");
worker.onerror = function(evt) {
- log("PASS: onerror invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + ".");
+ log("PASS: onerror invoked for a script that has script error '" + evt.message + "' at line " + evt.lineno + " and column " + evt.colno + ".");
runNextTest();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698