OLD | NEW |
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 Loading... |
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> |
OLD | NEW |