| 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 CompositionEvent DOM class."); | 9 description("This tests the constructor for the CompositionEvent DOM class."); |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 shouldBeEqualToString("new CompositionEvent('eventType', { data: {koakuma: 12345
} }).data", "[object Object]"); | 65 shouldBeEqualToString("new CompositionEvent('eventType', { data: {koakuma: 12345
} }).data", "[object Object]"); |
| 66 shouldBeEqualToString("new CompositionEvent('eventType', { data: {valueOf: funct
ion () { return 'koakuma'; } } }).data", "[object Object]"); | 66 shouldBeEqualToString("new CompositionEvent('eventType', { data: {valueOf: funct
ion () { return 'koakuma'; } } }).data", "[object Object]"); |
| 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 <script src="../../js/resources/js-test-post.js"></script> | |
| 76 </body> | 75 </body> |
| 77 </html> | 76 </html> |
| OLD | NEW |