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 PopStateEvent DOM class."); | 9 description("This tests the constructor for the PopStateEvent DOM class."); |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 shouldBeFalse("new PopStateEvent('eventType', { state: {valueOf: function () { r
eturn object2; } } }).state == object2"); | 39 shouldBeFalse("new PopStateEvent('eventType', { state: {valueOf: function () { r
eturn object2; } } }).state == object2"); |
40 shouldBe("new PopStateEvent('eventType', { get state() { return 123; } }).state"
, "123"); | 40 shouldBe("new PopStateEvent('eventType', { get state() { return 123; } }).state"
, "123"); |
41 shouldThrow("new PopStateEvent('eventType', { get state() { throw 'PopState Erro
r'; } })"); | 41 shouldThrow("new PopStateEvent('eventType', { get state() { throw 'PopState Erro
r'; } })"); |
42 | 42 |
43 // All initializers are passed. | 43 // All initializers are passed. |
44 var object3 = {nyannyan: 789}; | 44 var object3 = {nyannyan: 789}; |
45 shouldBe("new PopStateEvent('eventType', { bubbles: true, cancelable: true, stat
e: object3 }).bubbles", "true"); | 45 shouldBe("new PopStateEvent('eventType', { bubbles: true, cancelable: true, stat
e: object3 }).bubbles", "true"); |
46 shouldBe("new PopStateEvent('eventType', { bubbles: true, cancelable: true, stat
e: object3 }).cancelable", "true"); | 46 shouldBe("new PopStateEvent('eventType', { bubbles: true, cancelable: true, stat
e: object3 }).cancelable", "true"); |
47 shouldBe("new PopStateEvent('eventType', { bubbles: true, cancelable: true, stat
e: object3 }).state", "object3"); | 47 shouldBe("new PopStateEvent('eventType', { bubbles: true, cancelable: true, stat
e: object3 }).state", "object3"); |
48 </script> | 48 </script> |
49 <script src="../../js/resources/js-test-post.js"></script> | |
50 </body> | 49 </body> |
51 </html> | 50 </html> |
OLD | NEW |