Commit 970506ef authored by pdr@chromium.org's avatar pdr@chromium.org

Auto-rebaseline for r193809

http://src.chromium.org/viewvc/blink?view=revision&revision=193809

BUG=476503
TBR=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/1084323003

git-svn-id: svn://svn.chromium.org/blink/trunk@193839 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 83640649
...@@ -1975,20 +1975,6 @@ crbug.com/457137 [ Win ] webaudio/osc-sine-sweep-snr.html [ Pass Failure ] ...@@ -1975,20 +1975,6 @@ crbug.com/457137 [ Win ] webaudio/osc-sine-sweep-snr.html [ Pass Failure ]
# These need a manual rebaseline after crbug.com/459555 # These need a manual rebaseline after crbug.com/459555
crbug.com/459555 fast/js/reserved-words-as-property.html [ NeedsManualRebaseline ] crbug.com/459555 fast/js/reserved-words-as-property.html [ NeedsManualRebaseline ]
# These need a rebaseline after V8 has rolled fix for crbug.com/476503
crbug.com/476503 fast/events/window-onerror-06.html [ NeedsRebaseline ]
crbug.com/476503 fast/events/window-onerror-10.html [ NeedsRebaseline ]
crbug.com/476503 fast/events/window-onerror-isolatedworld-01.html [ NeedsRebaseline ]
crbug.com/476503 fast/events/window-onerror-isolatedworld-02.html [ NeedsRebaseline ]
crbug.com/476503 fast/js/exception-thrown-from-new.html [ NeedsRebaseline ]
crbug.com/476503 fast/workers/worker-onerror-08.html [ NeedsRebaseline ]
crbug.com/476503 virtual/slimmingpaint/fast/events/window-onerror-06.html [ NeedsRebaseline ]
crbug.com/476503 virtual/slimmingpaint/fast/events/window-onerror-10.html [ NeedsRebaseline ]
crbug.com/476503 virtual/slimmingpaint/fast/events/window-onerror-isolatedworld-01.html [ NeedsRebaseline ]
crbug.com/476503 virtual/slimmingpaint/fast/events/window-onerror-isolatedworld-02.html [ NeedsRebaseline ]
crbug.com/476503 virtual/slimmingpaint/fast/js/exception-thrown-from-new.html [ NeedsRebaseline ]
crbug.com/476503 virtual/slimmingpaint/fast/workers/worker-onerror-08.html [ NeedsRebaseline ]
crbug.com/459575 [ XP ] virtual/slimmingpaint/fast/text/emoticons.html [ Failure ] crbug.com/459575 [ XP ] virtual/slimmingpaint/fast/text/emoticons.html [ Failure ]
crbug.com/460335 editing/undo/orphaned-selection-crash-bug32823-2.html [ Pass Crash ] crbug.com/460335 editing/undo/orphaned-selection-crash-bug32823-2.html [ Pass Crash ]
......
...@@ -5,7 +5,7 @@ This test should trigger 'window.onerror' only once, without diving into horribl ...@@ -5,7 +5,7 @@ This test should trigger 'window.onerror' only once, without diving into horribl
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
window.onerror: "Uncaught Error: Original exception." at onerror-test.js (Line: 6, Column: 41) window.onerror: "Uncaught Error: Original exception." at onerror-test.js (Line: 6, Column: 5)
Stack Trace: Stack Trace:
Error: Original exception. Error: Original exception.
at throwException onerror-test.js:6:41 at throwException onerror-test.js:6:41
......
...@@ -3,7 +3,7 @@ This test should trigger 'window.onerror' multiple times, and successfully handl ...@@ -3,7 +3,7 @@ This test should trigger 'window.onerror' multiple times, and successfully handl
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
window.onerror: "Uncaught Error: Inline exception." at onerror-test.js (Line: 6, Column: 41) window.onerror: "Uncaught Error: Inline exception." at onerror-test.js (Line: 6, Column: 5)
Stack Trace: Stack Trace:
Error: Inline exception. Error: Inline exception.
at throwException onerror-test.js:6:41 at throwException onerror-test.js:6:41
...@@ -13,7 +13,7 @@ Returning 'true': the error should not be reported in the console as an unhandle ...@@ -13,7 +13,7 @@ Returning 'true': the error should not be reported in the console as an unhandle
window.onerror: "Uncaught Error: exception in onload" at onerror-test.js (Line: 6, Column: 41) window.onerror: "Uncaught Error: exception in onload" at onerror-test.js (Line: 6, Column: 5)
Stack Trace: Stack Trace:
Error: exception in onload Error: exception in onload
at throwException onerror-test.js:6:41 at throwException onerror-test.js:6:41
...@@ -23,7 +23,7 @@ Returning 'true': the error should not be reported in the console as an unhandle ...@@ -23,7 +23,7 @@ Returning 'true': the error should not be reported in the console as an unhandle
window.onerror: "Uncaught Error: exception in setTimeout" at onerror-test.js (Line: 6, Column: 41) window.onerror: "Uncaught Error: exception in setTimeout" at onerror-test.js (Line: 6, Column: 5)
Stack Trace: Stack Trace:
Error: exception in setTimeout Error: exception in setTimeout
at throwException onerror-test.js:6:41 at throwException onerror-test.js:6:41
......
...@@ -11,7 +11,7 @@ Calling e.preventDefault(): the error should not be reported in the console as a ...@@ -11,7 +11,7 @@ Calling e.preventDefault(): the error should not be reported in the console as a
window.onerror: "Uncaught Error: Error in main world inline script." at window-onerror-isolatedworld-01.html (Line: 52, Column: 19) window.onerror: "Uncaught Error: Error in main world inline script." at window-onerror-isolatedworld-01.html (Line: 52, Column: 13)
Stack Trace: Stack Trace:
Error: Error in main world inline script. Error: Error in main world inline script.
at exceptions window-onerror-isolatedworld-01.html:52:19 at exceptions window-onerror-isolatedworld-01.html:52:19
...@@ -41,7 +41,7 @@ Calling e.preventDefault(): the error should not be reported in the console as a ...@@ -41,7 +41,7 @@ Calling e.preventDefault(): the error should not be reported in the console as a
window.onerror: "Uncaught Error: Error in main world load handler." at window-onerror-isolatedworld-01.html (Line: 49, Column: 23) window.onerror: "Uncaught Error: Error in main world load handler." at window-onerror-isolatedworld-01.html (Line: 49, Column: 17)
Stack Trace: Stack Trace:
Error: Error in main world load handler. Error: Error in main world load handler.
at window-onerror-isolatedworld-01.html:49:23 at window-onerror-isolatedworld-01.html:49:23
...@@ -71,7 +71,7 @@ Calling e.preventDefault(): the error should not be reported in the console as a ...@@ -71,7 +71,7 @@ Calling e.preventDefault(): the error should not be reported in the console as a
FAIL Only main-world exceptions should be caught by ErrorEvent listeners. FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
window.onerror: "Uncaught Error: Error in main world setTimeout callback." at window-onerror-isolatedworld-01.html (Line: 47, Column: 27) window.onerror: "Uncaught Error: Error in main world setTimeout callback." at window-onerror-isolatedworld-01.html (Line: 47, Column: 21)
Stack Trace: Stack Trace:
Error: Error in main world setTimeout callback. Error: Error in main world setTimeout callback.
at window-onerror-isolatedworld-01.html:47:27 at window-onerror-isolatedworld-01.html:47:27
......
Test that window.onerror and "error" event listeners from isolated world are invoked for uncaught exceptions in scripts running in isolate worlds as well as for exceptions in the main world.Bug 8519. Test that window.onerror and "error" event listeners from isolated world are invoked for uncaught exceptions in scripts running in isolate worlds as well as for exceptions in the main world.Bug 8519.
isolated world window.onerror: Uncaught Error: Error in isolated world inline script. at , Line: 41, Column: 19 isolated world window.onerror: Uncaught Error: Error in isolated world inline script. at , Line: 41, Column: 13
Error object present! Error object present!
isolated world error event listener: Uncaught Error: Error in isolated world inline script. at :, Line: 41 isolated world error event listener: Uncaught Error: Error in isolated world inline script. at :, Line: 41
Error object present! Error object present!
isolated world error event listener: Uncaught Error: Error in main world inline script. at window-onerror-isolatedworld-02.html:, Line: 30 isolated world error event listener: Uncaught Error: Error in main world inline script. at window-onerror-isolatedworld-02.html:, Line: 30
No error object present! No error object present!
isolated world window.onerror: Uncaught Error: Error in isolated world load handler. at , Line: 38, Column: 23 isolated world window.onerror: Uncaught Error: Error in isolated world load handler. at , Line: 38, Column: 17
Error object present! Error object present!
isolated world error event listener: Uncaught Error: Error in isolated world load handler. at :, Line: 38 isolated world error event listener: Uncaught Error: Error in isolated world load handler. at :, Line: 38
Error object present! Error object present!
......
This page tests exceptions thrown from 'new' expressions. If the test passes, you'll see a series of PASS messages below. This page tests exceptions thrown from 'new' expressions. If the test passes, you'll see a series of PASS messages below.
FAIL: e1 should be 'TypeError: 'undefined' is not a constructor (evaluating 'new f')' but instead is 'TypeError: undefined is not a function'. FAIL: e1 should be 'TypeError: 'undefined' is not a constructor (evaluating 'new f')' but instead is 'TypeError: f is not a function'.
FAIL: e2 should be 'TypeError: 'undefined' is not a function (evaluating 'g()')' but instead is 'TypeError: g is not a function'. FAIL: e2 should be 'TypeError: 'undefined' is not a function (evaluating 'g()')' but instead is 'TypeError: g is not a function'.
...@@ -8,7 +8,7 @@ Page-level worker.onerror handler triggered: ...@@ -8,7 +8,7 @@ Page-level worker.onerror handler triggered:
PASS errorEvent.message is "Uncaught Error: Exception in setTimeout callback" PASS errorEvent.message is "Uncaught Error: Exception in setTimeout callback"
PASS stripURL(errorEvent.filename) is "[blob: URL]" PASS stripURL(errorEvent.filename) is "[blob: URL]"
PASS errorEvent.lineno is 3 PASS errorEvent.lineno is 3
PASS errorEvent.colno is 19 FAIL errorEvent.colno should be 19. Was 13.
PASS errorEvent.error is null PASS errorEvent.error is null
PASS successfullyParsed is true PASS successfullyParsed is true
......
CONSOLE ERROR: line 6: Uncaught Error: Original exception.
CONSOLE ERROR: line 6: Uncaught Error: Nested exception.
This test should trigger 'window.onerror' only once, without diving into horrible recursion.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
window.onerror: "Uncaught Error: Original exception." at onerror-test.js (Line: 6, Column: 41)
Stack Trace:
Error: Original exception.
at throwException onerror-test.js:6:41
at window-onerror-06.html:22:9
PASS successfullyParsed is true
TEST COMPLETE
This test should trigger 'window.onerror' multiple times, and successfully handle the errors.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
window.onerror: "Uncaught Error: Inline exception." at onerror-test.js (Line: 6, Column: 41)
Stack Trace:
Error: Inline exception.
at throwException onerror-test.js:6:41
at window-onerror-10.html:22:9
Returning 'true': the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: exception in onload" at onerror-test.js (Line: 6, Column: 41)
Stack Trace:
Error: exception in onload
at throwException onerror-test.js:6:41
at onload window-onerror-10.html:11:290
Returning 'true': the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: exception in setTimeout" at onerror-test.js (Line: 6, Column: 41)
Stack Trace:
Error: exception in setTimeout
at throwException onerror-test.js:6:41
at window-onerror-10.html:11:240
PASS successfullyParsed is true
TEST COMPLETE
Test that window.onerror and "error" event listeners from main world are not invoked for uncaught exceptions in scripts running in isolate worlds, but only for exceptions in the main world.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world inline script." at :11
No stack trace.
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: Error in main world inline script." at window-onerror-isolatedworld-01.html (Line: 52, Column: 19)
Stack Trace:
Error: Error in main world inline script.
at exceptions window-onerror-isolatedworld-01.html:52:19
at window-onerror-isolatedworld-01.html:58:9
Returning 'true': the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in main world inline script." at window-onerror-isolatedworld-01.html:52
Stack Trace:
Error: Error in main world inline script.
at exceptions window-onerror-isolatedworld-01.html:52:19
at window-onerror-isolatedworld-01.html:58:9
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world load handler." at :8
No stack trace.
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: Error in main world load handler." at window-onerror-isolatedworld-01.html (Line: 49, Column: 23)
Stack Trace:
Error: Error in main world load handler.
at window-onerror-isolatedworld-01.html:49:23
Returning 'true': the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in main world load handler." at window-onerror-isolatedworld-01.html:49
Stack Trace:
Error: Error in main world load handler.
at window-onerror-isolatedworld-01.html:49:23
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world setTimeout callback." at :6
No stack trace.
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
window.onerror: "Uncaught Error: Error in main world setTimeout callback." at window-onerror-isolatedworld-01.html (Line: 47, Column: 27)
Stack Trace:
Error: Error in main world setTimeout callback.
at window-onerror-isolatedworld-01.html:47:27
Returning 'true': the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in main world setTimeout callback." at window-onerror-isolatedworld-01.html:47
Stack Trace:
Error: Error in main world setTimeout callback.
at window-onerror-isolatedworld-01.html:47:27
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
PASS successfullyParsed is true
TEST COMPLETE
Test that window.onerror and "error" event listeners from isolated world are invoked for uncaught exceptions in scripts running in isolate worlds as well as for exceptions in the main world.Bug 8519.
isolated world window.onerror: Uncaught Error: Error in isolated world inline script. at , Line: 41, Column: 19
Error object present!
isolated world error event listener: Uncaught Error: Error in isolated world inline script. at :, Line: 41
Error object present!
isolated world error event listener: Uncaught Error: Error in main world inline script. at window-onerror-isolatedworld-02.html:, Line: 30
No error object present!
isolated world window.onerror: Uncaught Error: Error in isolated world load handler. at , Line: 38, Column: 23
Error object present!
isolated world error event listener: Uncaught Error: Error in isolated world load handler. at :, Line: 38
Error object present!
isolated world error event listener: Uncaught Error: Error in main world load handler. at window-onerror-isolatedworld-02.html:, Line: 27
No error object present!
This tests that exceptions in setTimeout triggers 'worker.onerror'.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Page-level worker.onerror handler triggered:
PASS errorEvent.message is "Uncaught Error: Exception in setTimeout callback"
PASS stripURL(errorEvent.filename) is "[blob: URL]"
PASS errorEvent.lineno is 3
PASS errorEvent.colno is 19
PASS errorEvent.error is null
PASS successfullyParsed is true
TEST COMPLETE
CONSOLE ERROR: line 6: Uncaught Error: Original exception.
CONSOLE ERROR: line 6: Uncaught Error: Nested exception.
This test should trigger 'window.onerror' only once, without diving into horrible recursion.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
window.onerror: "Uncaught Error: Original exception." at onerror-test.js (Line: 6, Column: 41)
Stack Trace:
Error: Original exception.
at throwException onerror-test.js:6:41
at window-onerror-06.html:22:9
PASS successfullyParsed is true
TEST COMPLETE
This test should trigger 'window.onerror' multiple times, and successfully handle the errors.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
window.onerror: "Uncaught Error: Inline exception." at onerror-test.js (Line: 6, Column: 41)
Stack Trace:
Error: Inline exception.
at throwException onerror-test.js:6:41
at window-onerror-10.html:22:9
Returning 'true': the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: exception in onload" at onerror-test.js (Line: 6, Column: 41)
Stack Trace:
Error: exception in onload
at throwException onerror-test.js:6:41
at onload window-onerror-10.html:11:290
Returning 'true': the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: exception in setTimeout" at onerror-test.js (Line: 6, Column: 41)
Stack Trace:
Error: exception in setTimeout
at throwException onerror-test.js:6:41
at window-onerror-10.html:11:240
PASS successfullyParsed is true
TEST COMPLETE
Test that window.onerror and "error" event listeners from main world are not invoked for uncaught exceptions in scripts running in isolate worlds, but only for exceptions in the main world.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world inline script." at :11
No stack trace.
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: Error in main world inline script." at window-onerror-isolatedworld-01.html (Line: 52, Column: 19)
Stack Trace:
Error: Error in main world inline script.
at exceptions window-onerror-isolatedworld-01.html:52:19
at window-onerror-isolatedworld-01.html:58:9
Returning 'true': the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in main world inline script." at window-onerror-isolatedworld-01.html:52
Stack Trace:
Error: Error in main world inline script.
at exceptions window-onerror-isolatedworld-01.html:52:19
at window-onerror-isolatedworld-01.html:58:9
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world load handler." at :8
No stack trace.
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: Error in main world load handler." at window-onerror-isolatedworld-01.html (Line: 49, Column: 23)
Stack Trace:
Error: Error in main world load handler.
at window-onerror-isolatedworld-01.html:49:23
Returning 'true': the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in main world load handler." at window-onerror-isolatedworld-01.html:49
Stack Trace:
Error: Error in main world load handler.
at window-onerror-isolatedworld-01.html:49:23
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world setTimeout callback." at :6
No stack trace.
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
window.onerror: "Uncaught Error: Error in main world setTimeout callback." at window-onerror-isolatedworld-01.html (Line: 47, Column: 27)
Stack Trace:
Error: Error in main world setTimeout callback.
at window-onerror-isolatedworld-01.html:47:27
Returning 'true': the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in main world setTimeout callback." at window-onerror-isolatedworld-01.html:47
Stack Trace:
Error: Error in main world setTimeout callback.
at window-onerror-isolatedworld-01.html:47:27
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
PASS successfullyParsed is true
TEST COMPLETE
Test that window.onerror and "error" event listeners from isolated world are invoked for uncaught exceptions in scripts running in isolate worlds as well as for exceptions in the main world.Bug 8519.
isolated world window.onerror: Uncaught Error: Error in isolated world inline script. at , Line: 41, Column: 19
Error object present!
isolated world error event listener: Uncaught Error: Error in isolated world inline script. at :, Line: 41
Error object present!
isolated world error event listener: Uncaught Error: Error in main world inline script. at window-onerror-isolatedworld-02.html:, Line: 30
No error object present!
isolated world window.onerror: Uncaught Error: Error in isolated world load handler. at , Line: 38, Column: 23
Error object present!
isolated world error event listener: Uncaught Error: Error in isolated world load handler. at :, Line: 38
Error object present!
isolated world error event listener: Uncaught Error: Error in main world load handler. at window-onerror-isolatedworld-02.html:, Line: 27
No error object present!
This page tests exceptions thrown from 'new' expressions. If the test passes, you'll see a series of PASS messages below.
FAIL: e1 should be 'TypeError: 'undefined' is not a constructor (evaluating 'new f')' but instead is 'TypeError: undefined is not a function'.
FAIL: e2 should be 'TypeError: 'undefined' is not a function (evaluating 'g()')' but instead is 'TypeError: g is not a function'.
This tests that exceptions in setTimeout triggers 'worker.onerror'.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Page-level worker.onerror handler triggered:
PASS errorEvent.message is "Uncaught Error: Exception in setTimeout callback"
PASS stripURL(errorEvent.filename) is "[blob: URL]"
PASS errorEvent.lineno is 3
PASS errorEvent.colno is 19
PASS errorEvent.error is null
PASS successfullyParsed is true
TEST COMPLETE
CONSOLE ERROR: line 6: Uncaught Error: Original exception.
CONSOLE ERROR: line 6: Uncaught Error: Nested exception.
This test should trigger 'window.onerror' only once, without diving into horrible recursion.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
window.onerror: "Uncaught Error: Original exception." at onerror-test.js (Line: 6, Column: 5)
Stack Trace:
Error: Original exception.
at throwException onerror-test.js:6:41
at window-onerror-06.html:22:9
PASS successfullyParsed is true
TEST COMPLETE
This test should trigger 'window.onerror' multiple times, and successfully handle the errors.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
window.onerror: "Uncaught Error: Inline exception." at onerror-test.js (Line: 6, Column: 5)
Stack Trace:
Error: Inline exception.
at throwException onerror-test.js:6:41
at window-onerror-10.html:22:9
Returning 'true': the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: exception in onload" at onerror-test.js (Line: 6, Column: 5)
Stack Trace:
Error: exception in onload
at throwException onerror-test.js:6:41
at onload window-onerror-10.html:11:290
Returning 'true': the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: exception in setTimeout" at onerror-test.js (Line: 6, Column: 5)
Stack Trace:
Error: exception in setTimeout
at throwException onerror-test.js:6:41
at window-onerror-10.html:11:240
PASS successfullyParsed is true
TEST COMPLETE
Test that window.onerror and "error" event listeners from main world are not invoked for uncaught exceptions in scripts running in isolate worlds, but only for exceptions in the main world.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world inline script." at :11
No stack trace.
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: Error in main world inline script." at window-onerror-isolatedworld-01.html (Line: 52, Column: 13)
Stack Trace:
Error: Error in main world inline script.
at exceptions window-onerror-isolatedworld-01.html:52:19
at window-onerror-isolatedworld-01.html:58:9
Returning 'true': the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in main world inline script." at window-onerror-isolatedworld-01.html:52
Stack Trace:
Error: Error in main world inline script.
at exceptions window-onerror-isolatedworld-01.html:52:19
at window-onerror-isolatedworld-01.html:58:9
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world load handler." at :8
No stack trace.
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
window.onerror: "Uncaught Error: Error in main world load handler." at window-onerror-isolatedworld-01.html (Line: 49, Column: 17)
Stack Trace:
Error: Error in main world load handler.
at window-onerror-isolatedworld-01.html:49:23
Returning 'true': the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in main world load handler." at window-onerror-isolatedworld-01.html:49
Stack Trace:
Error: Error in main world load handler.
at window-onerror-isolatedworld-01.html:49:23
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world setTimeout callback." at :6
No stack trace.
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
window.onerror: "Uncaught Error: Error in main world setTimeout callback." at window-onerror-isolatedworld-01.html (Line: 47, Column: 21)
Stack Trace:
Error: Error in main world setTimeout callback.
at window-onerror-isolatedworld-01.html:47:27
Returning 'true': the error should not be reported in the console as an unhandled exception.
Handling 'error' event (phase 2): "Uncaught Error: Error in main world setTimeout callback." at window-onerror-isolatedworld-01.html:47
Stack Trace:
Error: Error in main world setTimeout callback.
at window-onerror-isolatedworld-01.html:47:27
PASS eventPassedToTheErrorListener is window.event
PASS eventCurrentTarget is window
Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
FAIL Only main-world exceptions should be caught by ErrorEvent listeners.
PASS successfullyParsed is true
TEST COMPLETE
Test that window.onerror and "error" event listeners from isolated world are invoked for uncaught exceptions in scripts running in isolate worlds as well as for exceptions in the main world.Bug 8519.
isolated world window.onerror: Uncaught Error: Error in isolated world inline script. at , Line: 41, Column: 13
Error object present!
isolated world error event listener: Uncaught Error: Error in isolated world inline script. at :, Line: 41
Error object present!
isolated world error event listener: Uncaught Error: Error in main world inline script. at window-onerror-isolatedworld-02.html:, Line: 30
No error object present!
isolated world window.onerror: Uncaught Error: Error in isolated world load handler. at , Line: 38, Column: 17
Error object present!
isolated world error event listener: Uncaught Error: Error in isolated world load handler. at :, Line: 38
Error object present!
isolated world error event listener: Uncaught Error: Error in main world load handler. at window-onerror-isolatedworld-02.html:, Line: 27
No error object present!
This tests that exceptions in setTimeout triggers 'worker.onerror'.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Page-level worker.onerror handler triggered:
PASS errorEvent.message is "Uncaught Error: Exception in setTimeout callback"
PASS stripURL(errorEvent.filename) is "[blob: URL]"
PASS errorEvent.lineno is 3
FAIL errorEvent.colno should be 19. Was 13.
PASS errorEvent.error is null
PASS successfullyParsed is true
TEST COMPLETE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment