| 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 HashChangeEvent DOM class."); | 9 description("This tests the constructor for the HashChangeEvent DOM class."); |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 shouldBeEqualToString("new HashChangeEvent('eventType', { " + attr + ": {dor
emi: 12345} })." + attr, "[object Object]"); | 41 shouldBeEqualToString("new HashChangeEvent('eventType', { " + attr + ": {dor
emi: 12345} })." + attr, "[object Object]"); |
| 42 shouldBeEqualToString("new HashChangeEvent('eventType', { " + attr + ": {val
ueOf: function () { return 'doremi'; } } })." + attr, "[object Object]"); | 42 shouldBeEqualToString("new HashChangeEvent('eventType', { " + attr + ": {val
ueOf: function () { return 'doremi'; } } })." + attr, "[object Object]"); |
| 43 }); | 43 }); |
| 44 | 44 |
| 45 // All initializers are passed. | 45 // All initializers are passed. |
| 46 shouldBe("new HashChangeEvent('eventType', { bubbles: true, cancelable: true, ol
dURL: 'doremi', newURL: 'andre' }).bubbles", "true"); | 46 shouldBe("new HashChangeEvent('eventType', { bubbles: true, cancelable: true, ol
dURL: 'doremi', newURL: 'andre' }).bubbles", "true"); |
| 47 shouldBe("new HashChangeEvent('eventType', { bubbles: true, cancelable: true, ol
dURL: 'doremi', newURL: 'andre' }).cancelable", "true"); | 47 shouldBe("new HashChangeEvent('eventType', { bubbles: true, cancelable: true, ol
dURL: 'doremi', newURL: 'andre' }).cancelable", "true"); |
| 48 shouldBeEqualToString("new HashChangeEvent('eventType', { bubbles: true, cancela
ble: true, oldURL: 'doremi', newURL: 'andre' }).oldURL", "doremi"); | 48 shouldBeEqualToString("new HashChangeEvent('eventType', { bubbles: true, cancela
ble: true, oldURL: 'doremi', newURL: 'andre' }).oldURL", "doremi"); |
| 49 shouldBeEqualToString("new HashChangeEvent('eventType', { bubbles: true, cancela
ble: true, oldURL: 'doremi', newURL: 'andre' }).newURL", "andre"); | 49 shouldBeEqualToString("new HashChangeEvent('eventType', { bubbles: true, cancela
ble: true, oldURL: 'doremi', newURL: 'andre' }).newURL", "andre"); |
| 50 </script> | 50 </script> |
| 51 <script src="../../js/resources/js-test-post.js"></script> | |
| 52 </body> | 51 </body> |
| 53 </html> | 52 </html> |
| OLD | NEW |