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

Side by Side Diff: LayoutTests/fast/events/window-onerror3.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
4
5 function log(msg) {
6 document.getElementById("console").innerHTML += msg + "<br>";
7 }
8
9 function test1()
10 {
11 window.onerror = function (error, url, line) {
12 url = url ? url.match( /[^\/]+\/?$/ )[0] : url;
13 log("Error caught successfully: " + error + "\nFile: " + url + "\nLine: " + line)
14 return true;
15 };
16 unknownObject.unknownProperty++;
17 }
18 </script>
19 <body onload="test1();">
20 <p>You should see a message if window.onerror is working properly for this test. <a href="https://bugs.webkit.org/show_bug.cgi?id=8519">Bug 8519</a>.</p>
21 <hr>
22 <div id='console'></div>
23 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/window-onerror2-expected.txt ('k') | LayoutTests/fast/events/window-onerror3-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698