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

Unified Diff: LayoutTests/fast/events/window-onerror-04.html

Issue 19962008: Rewrite the 'window.onerror' tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: *facepalm* 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-04.html
diff --git a/LayoutTests/fast/events/window-onerror-04.html b/LayoutTests/fast/events/window-onerror-04.html
new file mode 100644
index 0000000000000000000000000000000000000000..f19d64abb94e0672b3bb80ac605731ceeaceb6dc
--- /dev/null
+++ b/LayoutTests/fast/events/window-onerror-04.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script>
+ window.isOnErrorTest = true;
+ </script>
+ <script src="../js/resources/js-test-pre.js"></script>
+ <script src="resources/onerror-test.js"></script>
+</head>
+<body>
+ <script>
+ description("This test should trigger 'window.onerror', and successfully handle the error.");
+ dumpOnErrorArgumentValuesAndReturn(true);
+ eval("a("); // caught by window.onerror
+ </script>
+ <script src="../js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/fast/events/window-onerror-03-expected.txt ('k') | LayoutTests/fast/events/window-onerror-04-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698