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

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: js-test-pre 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..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.

Powered by Google App Engine
This is Rietveld 408576698