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="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 | 8 |
9 description("This tests the constructor for the AnimationEvent DOM class."); | 9 description("This tests the constructor for the AnimationEvent DOM class."); |
10 | 10 |
11 // No initializer is passed. | 11 // No initializer is passed. |
12 shouldBe("new AnimationEvent('eventType').bubbles", "false"); | 12 shouldBe("new AnimationEvent('eventType').bubbles", "false"); |
13 shouldBe("new AnimationEvent('eventType').cancelable", "false"); | 13 shouldBe("new AnimationEvent('eventType').cancelable", "false"); |
14 shouldBeEqualToString("new AnimationEvent('eventType').animationName", ""); | 14 shouldBeEqualToString("new AnimationEvent('eventType').animationName", ""); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 shouldBe("new AnimationEvent('eventType', { elapsedTime: {valueOf: function () {
return 123.45 } } }).elapsedTime", "123.45"); | 64 shouldBe("new AnimationEvent('eventType', { elapsedTime: {valueOf: function () {
return 123.45 } } }).elapsedTime", "123.45"); |
65 | 65 |
66 // All initializers are passed. | 66 // All initializers are passed. |
67 shouldBe("new AnimationEvent('eventType', { bubbles: true, cancelable: true, ani
mationName: 'doremi', elapsedTime: 123.45 }).bubbles", "true"); | 67 shouldBe("new AnimationEvent('eventType', { bubbles: true, cancelable: true, ani
mationName: 'doremi', elapsedTime: 123.45 }).bubbles", "true"); |
68 shouldBe("new AnimationEvent('eventType', { bubbles: true, cancelable: true, ani
mationName: 'doremi', elapsedTime: 123.45 }).cancelable", "true"); | 68 shouldBe("new AnimationEvent('eventType', { bubbles: true, cancelable: true, ani
mationName: 'doremi', elapsedTime: 123.45 }).cancelable", "true"); |
69 shouldBe("new AnimationEvent('eventType', { bubbles: true, cancelable: true, ani
mationName: 'doremi', elapsedTime: 123.45 }).animationName", "'doremi'"); | 69 shouldBe("new AnimationEvent('eventType', { bubbles: true, cancelable: true, ani
mationName: 'doremi', elapsedTime: 123.45 }).animationName", "'doremi'"); |
70 shouldBe("new AnimationEvent('eventType', { bubbles: true, cancelable: true, ani
mationName: 'doremi', elapsedTime: 123.45 }).elapsedTime", "123.45"); | 70 shouldBe("new AnimationEvent('eventType', { bubbles: true, cancelable: true, ani
mationName: 'doremi', elapsedTime: 123.45 }).elapsedTime", "123.45"); |
71 </script> | 71 </script> |
72 </body> | 72 </body> |
73 </html> | 73 </html> |
OLD | NEW |