| 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 UIEvent DOM class."); | 9 description("This tests the constructor for the UIEvent DOM class."); |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 shouldBe("new UIEvent('eventType', { detail: {} }).detail", "0"); | 75 shouldBe("new UIEvent('eventType', { detail: {} }).detail", "0"); |
| 76 shouldBe("new UIEvent('eventType', { detail: {moemoe: 12345} }).detail", "0"); | 76 shouldBe("new UIEvent('eventType', { detail: {moemoe: 12345} }).detail", "0"); |
| 77 shouldBe("new UIEvent('eventType', { detail: {valueOf: function () { return 1234
5; }} }).detail", "12345"); | 77 shouldBe("new UIEvent('eventType', { detail: {valueOf: function () { return 1234
5; }} }).detail", "12345"); |
| 78 | 78 |
| 79 // All initializers are passed. | 79 // All initializers are passed. |
| 80 shouldBe("new UIEvent('eventType', { bubbles: true, cancelable: true, view: wind
ow, detail: 123 }).bubbles", "true"); | 80 shouldBe("new UIEvent('eventType', { bubbles: true, cancelable: true, view: wind
ow, detail: 123 }).bubbles", "true"); |
| 81 shouldBe("new UIEvent('eventType', { bubbles: true, cancelable: true, view: wind
ow, detail: 123 }).cancelable", "true"); | 81 shouldBe("new UIEvent('eventType', { bubbles: true, cancelable: true, view: wind
ow, detail: 123 }).cancelable", "true"); |
| 82 shouldBe("new UIEvent('eventType', { bubbles: true, cancelable: true, view: wind
ow, detail: 123 }).view", "window"); | 82 shouldBe("new UIEvent('eventType', { bubbles: true, cancelable: true, view: wind
ow, detail: 123 }).view", "window"); |
| 83 shouldBe("new UIEvent('eventType', { bubbles: true, cancelable: true, view: wind
ow, detail: 123 }).detail", "123"); | 83 shouldBe("new UIEvent('eventType', { bubbles: true, cancelable: true, view: wind
ow, detail: 123 }).detail", "123"); |
| 84 </script> | 84 </script> |
| 85 <script src="../../js/resources/js-test-post.js"></script> | |
| 86 </body> | 85 </body> |
| 87 </html> | 86 </html> |
| OLD | NEW |