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

Side by Side Diff: LayoutTests/fast/events/constructors/error-event-constructor.html

Issue 20351002: Add 'error' parameter to 'window.onerror' handlers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Constructor. Created 7 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/constructors/error-event-constructor-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 8
9 description("This tests the constructor for the ErrorEvent DOM class."); 9 description("This tests the constructor for the ErrorEvent DOM class.");
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 shouldBe("new ErrorEvent('eventType', { colno: '12345' }).colno", "12345"); 98 shouldBe("new ErrorEvent('eventType', { colno: '12345' }).colno", "12345");
99 shouldBe("new ErrorEvent('eventType', { colno: '12345a' }).colno", "0"); 99 shouldBe("new ErrorEvent('eventType', { colno: '12345a' }).colno", "0");
100 shouldBe("new ErrorEvent('eventType', { colno: 'abc' }).colno", "0"); 100 shouldBe("new ErrorEvent('eventType', { colno: 'abc' }).colno", "0");
101 shouldBe("new ErrorEvent('eventType', { colno: [] }).colno", "0"); 101 shouldBe("new ErrorEvent('eventType', { colno: [] }).colno", "0");
102 shouldBe("new ErrorEvent('eventType', { colno: [12345] }).colno", "12345"); 102 shouldBe("new ErrorEvent('eventType', { colno: [12345] }).colno", "12345");
103 shouldBe("new ErrorEvent('eventType', { colno: [12345, 67890] }).colno", "0"); 103 shouldBe("new ErrorEvent('eventType', { colno: [12345, 67890] }).colno", "0");
104 shouldBe("new ErrorEvent('eventType', { colno: {} }).colno", "0"); 104 shouldBe("new ErrorEvent('eventType', { colno: {} }).colno", "0");
105 shouldBe("new ErrorEvent('eventType', { colno: {moemoe: 12345} }).colno", "0"); 105 shouldBe("new ErrorEvent('eventType', { colno: {moemoe: 12345} }).colno", "0");
106 shouldBe("new ErrorEvent('eventType', { colno: {valueOf: function () { return 12 345; }} }).colno", "12345"); 106 shouldBe("new ErrorEvent('eventType', { colno: {valueOf: function () { return 12 345; }} }).colno", "12345");
107 107
108 // error is passed.
109 shouldBe("new ErrorEvent('eventType', { error: { moemoe: 12345 } }).error.moemoe ", "12345");
110 shouldBeEqualToString("new ErrorEvent('eventType', { error: { message: 'Message' } }).error.message", "Message");
111
108 // All initializers are passed. 112 // All initializers are passed.
109 shouldBe("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message : 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456 }).bubbles", "tr ue"); 113 shouldBe("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message : 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456, error: { messag e: 'hi' } }).bubbles", "true");
110 shouldBe("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message : 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456 }).cancelable", "true"); 114 shouldBe("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message : 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456, error: { messag e: 'hi' } }).cancelable", "true");
111 shouldBeEqualToString("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message: 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456 }). message", "sakuranbo"); 115 shouldBeEqualToString("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message: 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456, er ror: { message: 'hi' } }).message", "sakuranbo");
112 shouldBeEqualToString("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message: 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456 }). filename", "amaenbo"); 116 shouldBeEqualToString("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message: 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456, er ror: { message: 'hi' } }).filename", "amaenbo");
113 shouldBe("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message : 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456 }).lineno", "123 45"); 117 shouldBe("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message : 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456, error: { messag e: 'hi' } }).lineno", "12345");
114 shouldBe("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message : 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456 }).colno", "2345 6"); 118 shouldBe("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message : 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456, error: { messag e: 'hi' } }).colno", "23456");
119 shouldBeEqualToString("new ErrorEvent('eventType', { bubbles: true, cancelable: true, message: 'sakuranbo', filename: 'amaenbo', lineno: 12345, colno: 23456, er ror: { message: 'hi' } }).error.message", "hi");
115 </script> 120 </script>
116 <script src="../../js/resources/js-test-post.js"></script> 121 <script src="../../js/resources/js-test-post.js"></script>
117 </body> 122 </body>
118 </html> 123 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/constructors/error-event-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698