Index: LayoutTests/fast/events/window-onerror-isolatedworld-01-expected.txt |
diff --git a/LayoutTests/fast/events/window-onerror-isolatedworld-01-expected.txt b/LayoutTests/fast/events/window-onerror-isolatedworld-01-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a06fec8d17c2d6ffdf5a1c43f2c80e686da91a76 |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-isolatedworld-01-expected.txt |
@@ -0,0 +1,40 @@ |
+window.onerror: "Uncaught Error: Error in isolated world inline script." at (11, 18) |
+- Returning 'true': the error should not be reported in the console as an unhandled exception. |
+Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world inline script." at :11 |
+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 (33, 18) |
+- 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:33 |
+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 isolated world load handler." at (8, 22) |
+- Returning 'true': 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 |
+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 (30, 22) |
+- 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:30 |
+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 isolated world setTimeout callback." at (6, 26) |
+- Returning 'true': the error should not be reported in the console as an unhandled exception. |
+Handling 'error' event (phase 2): "Uncaught Error: Error in isolated world setTimeout callback." at :6 |
+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 setTimeout callback." at window-onerror-isolatedworld-01.html (28, 26) |
+- 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:28 |
+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. |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+Test that window.onerror and "error" event listeners from main world are invoked for uncaught exceptions in scripts running in isolate worlds as well as for exceptions in the main world.Bug 8519. |