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

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

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 window.isOnErrorTest = true; 5 window.isOnErrorTest = true;
6 </script> 6 </script>
7 <script src="../js/resources/js-test-pre.js"></script> 7 <script src="../../resources/js-test.js"></script>
8 <script src="resources/onerror-test.js"></script> 8 <script src="resources/onerror-test.js"></script>
9 <script> 9 <script>
10 var onerrorMessage, onerrorURL, onerrorLine, onerrorColumn; 10 var onerrorMessage, onerrorURL, onerrorLine, onerrorColumn;
11 window.onerror = function (message, url, line, column) { 11 window.onerror = function (message, url, line, column) {
12 onerrorMessage = message; 12 onerrorMessage = message;
13 onerrorURL = url; 13 onerrorURL = url;
14 onerrorLine = line; 14 onerrorLine = line;
15 onerrorColumn = column; 15 onerrorColumn = column;
16 16
17 shouldBeEqualToString('window.event.type', 'error'); 17 shouldBeEqualToString('window.event.type', 'error');
18 shouldBe('onerrorMessage', 'window.event.message'); 18 shouldBe('onerrorMessage', 'window.event.message');
19 shouldBe('stripURL(onerrorURL)', 'stripURL(window.event.filename)'); 19 shouldBe('stripURL(onerrorURL)', 'stripURL(window.event.filename)');
20 shouldBe('onerrorLine', 'window.event.lineno'); 20 shouldBe('onerrorLine', 'window.event.lineno');
21 shouldBe('onerrorColumn', 'window.event.colno'); 21 shouldBe('onerrorColumn', 'window.event.colno');
22 return true; 22 return true;
23 }; 23 };
24 </script> 24 </script>
25 </head> 25 </head>
26 <body> 26 <body>
27 <p>This tests that when 'window.onerror' handler is called, 'window.event' i s the corresponding ErrorEvent object.</p> 27 <p>This tests that when 'window.onerror' handler is called, 'window.event' i s the corresponding ErrorEvent object.</p>
28 <script> 28 <script>
29 throwException(); 29 throwException();
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/window-onerror-06.html ('k') | LayoutTests/fast/events/window-onerror-09.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698