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

Unified Diff: LayoutTests/fast/events/window-onerror-syntax-error-in-attr.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-syntax-error-in-attr.html
diff --git a/LayoutTests/fast/events/window-onerror-syntax-error-in-attr.html b/LayoutTests/fast/events/window-onerror-syntax-error-in-attr.html
deleted file mode 100644
index 30d557b57b777c57e02bab1ed5e1e6aaa59313fe..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/events/window-onerror-syntax-error-in-attr.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<html>
-<head>
-<script src="resources/window-onerror.js">
-</script>
-</head>
-<body>
-<p>Test that window.onerror is called on window object when there is a syntax error
-in attribute handler. <a href="https://bugs.webkit.org/show_bug.cgi?id=70991">Bug 70991</a>.</p>
-<div id="console"></div>
-<button id="btn1" onclick="%">Button 1</button>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function log(msg) {
- document.getElementById("console").innerHTML += msg + "<br>";
-}
-
-window.onerror = function(msg, url, line)
-{
- url = url ? url.match( /[^\/]+\/?$/ )[0] : url;
- log("Main frame window.onerror: " + msg + " at " + url + ":" + line);
- return true;
-}
-
-document.write('<button id="btn2" onclick="%">Button 2</button>\n');
-
-var button3 = document.createElement("button");
-button3.textContent = "Button 3";
-button3.setAttribute("onclick", "%");
-document.body.appendChild(button3);
-
-document.getElementById("btn1").click();
-document.getElementById("btn2").click();
-button3.click();
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698