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

Unified Diff: LayoutTests/fast/events/window-onerror1.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-onerror1.html
diff --git a/LayoutTests/fast/events/window-onerror1.html b/LayoutTests/fast/events/window-onerror1.html
deleted file mode 100644
index 7074962fe299b6e0b60b529403a1a5b577df07e8..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/events/window-onerror1.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<html>
-<head>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function print(message, color)
-{
- var paragraph = document.createElement("div");
- paragraph.appendChild(document.createTextNode(message));
- paragraph.style.fontFamily = "monospace";
- if (color)
- paragraph.style.color = color;
- document.getElementById("console").appendChild(paragraph);
-}
-
-function test()
-{
- // must be last because the exception ends JavaScript execution
- window.onerror = function (error, url, line, column) {
- url = url ? url.match( /[^\/]+\/?$/ )[0] : url;
- print("PASS: caught global error: " + error + " at " + url + ", line: " + line + ", column: " + column, "green");
- return true;
- };
- hahaha_good_luck_finding_me(); // caught by window.onerror
-}
-</script>
-</head>
-<body onload="test();">
-<p>This page tests setting onerror handlers through the DOM. If it passes, you will
- see "PASS" messages below.<a href="https://bugs.webkit.org/show_bug.cgi?id=8519">Bug 8519</a>.</p>
-<hr>
-<div id='console'></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698