Index: LayoutTests/http/tests/resources/js-test-pre.js |
diff --git a/LayoutTests/http/tests/resources/js-test-pre.js b/LayoutTests/http/tests/resources/js-test-pre.js |
index f4f502f00db641d00a2e2ca9c2c241bf9a92eca0..319277ba0cc48130067ac638ce201477ec28d814 100644 |
--- a/LayoutTests/http/tests/resources/js-test-pre.js |
+++ b/LayoutTests/http/tests/resources/js-test-pre.js |
@@ -72,10 +72,12 @@ var description, debug, successfullyParsed, errorMessage; |
if (!isWorker()) |
insertStyleSheet(); |
- self.onerror = function(message) |
- { |
- errorMessage = message; |
- }; |
+ if (!self.isOnErrorTest) { |
+ self.onerror = function(message) |
+ { |
+ errorMessage = message; |
+ }; |
+ } |
})(); |