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 CompositionEvent DOM class."); | 9 description("This tests the constructor for the CompositionEvent DOM class."); |
10 | 10 |
11 var testObject = {nyannyan: 123}; | 11 var testObject = {nyannyan: 123}; |
12 | 12 |
13 // No initializer is passed. | 13 // No initializer is passed. |
14 shouldBe("new CompositionEvent('eventType').bubbles", "false"); | 14 shouldBe("new CompositionEvent('eventType').bubbles", "false"); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // All initializers are passed. | 68 // All initializers are passed. |
69 shouldBe("new CompositionEvent('eventType', { bubbles: true, cancelable: true, v
iew: window, detail: 111, data: 'koakuma' }).bubbles", "true"); | 69 shouldBe("new CompositionEvent('eventType', { bubbles: true, cancelable: true, v
iew: window, detail: 111, data: 'koakuma' }).bubbles", "true"); |
70 shouldBe("new CompositionEvent('eventType', { bubbles: true, cancelable: true, v
iew: window, detail: 111, data: 'koakuma' }).cancelable", "true"); | 70 shouldBe("new CompositionEvent('eventType', { bubbles: true, cancelable: true, v
iew: window, detail: 111, data: 'koakuma' }).cancelable", "true"); |
71 shouldBe("new CompositionEvent('eventType', { bubbles: true, cancelable: true, v
iew: window, detail: 111, data: 'koakuma' }).view", "window"); | 71 shouldBe("new CompositionEvent('eventType', { bubbles: true, cancelable: true, v
iew: window, detail: 111, data: 'koakuma' }).view", "window"); |
72 shouldBe("new CompositionEvent('eventType', { bubbles: true, cancelable: true, v
iew: window, detail: 111, data: 'koakuma' }).detail", "111"); | 72 shouldBe("new CompositionEvent('eventType', { bubbles: true, cancelable: true, v
iew: window, detail: 111, data: 'koakuma' }).detail", "111"); |
73 shouldBeEqualToString("new CompositionEvent('eventType', { bubbles: true, cancel
able: true, view: window, detail: 111, data: 'koakuma' }).data", "koakuma"); | 73 shouldBeEqualToString("new CompositionEvent('eventType', { bubbles: true, cancel
able: true, view: window, detail: 111, data: 'koakuma' }).data", "koakuma"); |
74 </script> | 74 </script> |
75 </body> | 75 </body> |
76 </html> | 76 </html> |
OLD | NEW |