| 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 UIEvent DOM class."); | 9 description("This tests the constructor for the UIEvent 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 UIEvent('eventType').bubbles", "false"); | 14 shouldBe("new UIEvent('eventType').bubbles", "false"); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 </body> | 85 </body> |
| 86 </html> | 86 </html> |
| OLD | NEW |