Index: LayoutTests/fast/workers/worker-constructor.html |
diff --git a/LayoutTests/fast/workers/worker-constructor.html b/LayoutTests/fast/workers/worker-constructor.html |
index 01f7d968d241cc9a49731ce575cfed5d5d9caa5e..38f5423ada7e4a79a6fe1f080df1c0a34905139e 100644 |
--- a/LayoutTests/fast/workers/worker-constructor.html |
+++ b/LayoutTests/fast/workers/worker-constructor.html |
@@ -71,12 +71,13 @@ function testEmptyScriptUrl() |
{ |
try { |
var worker = new Worker(""); |
- worker.onerror = function() { |
- log("FAIL: onerror invoked for an empty script URL."); |
+ worker.onerror = function(e) { |
+ log("PASS: onerror invoked for an empty script URL, resolving to this HTML document's URL."); |
+ e.preventDefault(); |
runNextTest(); |
} |
} catch (ex) { |
- log("PASS: invoking Worker constructor with empty script URL resulted in an exception (" + ex + ")"); |
+ log("FAIL: invoking Worker constructor with empty script URL resulted in a exception (" + ex + ")"); |
runNextTest(); |
} |
} |