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

Unified Diff: LayoutTests/fast/events/window-onerror-isolatedworld-01-expected.txt

Issue 19962008: Rewrite the 'window.onerror' tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests. 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/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..de2dc723700fa4d635af89edca8fedf4c8f4cbee
--- /dev/null
+++ b/LayoutTests/fast/events/window-onerror-isolatedworld-01-expected.txt
@@ -0,0 +1,39 @@
+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.
+
+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: event passed to the listener is the same as 'window.event': true
+PASS: 'currentTarget' is the global object: true
+- 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 (32, 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:32
+PASS: event passed to the listener is the same as 'window.event': true
+PASS: 'currentTarget' is the global object: true
+- 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: event passed to the listener is the same as 'window.event': true
+PASS: 'currentTarget' is the global object: true
+- 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 (29, 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:29
+PASS: event passed to the listener is the same as 'window.event': true
+PASS: 'currentTarget' is the global object: true
+- 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: event passed to the listener is the same as 'window.event': true
+PASS: 'currentTarget' is the global object: true
+- 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 (27, 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:27
+PASS: event passed to the listener is the same as 'window.event': true
+PASS: 'currentTarget' is the global object: true
+- Calling e.preventDefault(): the error should not be reported in the console as an unhandled exception.
+

Powered by Google App Engine
This is Rietveld 408576698