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

Side by Side Diff: LayoutTests/fast/events/window-onerror-07.html

Issue 19962008: Rewrite the 'window.onerror' tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests. 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/onerror-test.js"></script>
5 <script>
6 window.onerror = function (message) {
7 if (this === window)
do-not-use 2013/07/23 14:46:09 We could use shouldBe(this, window); if we used js
8 log("PASS: 'this' inside 'window.onerror' handler is 'window'");
9 else
10 log("FAIL: 'this' inside 'window.onerror' handler is not 'window '");
11 return true;
12 };
13 </script>
14 </head>
15 <body>
16 <p>This tests that 'window.onerror' is called on the window object.</p>
17 <script>
18 throwException()
19 </script>
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698