| 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 CloseEvent DOM class."); | 9 description("This tests the constructor for the CloseEvent DOM class."); |
| 10 | 10 |
| 11 // No initializer is passed. | 11 // No initializer is passed. |
| 12 shouldBe("new CloseEvent('eventType').bubbles", "false"); | 12 shouldBe("new CloseEvent('eventType').bubbles", "false"); |
| 13 shouldBe("new CloseEvent('eventType').cancelable", "false"); | 13 shouldBe("new CloseEvent('eventType').cancelable", "false"); |
| 14 shouldBe("new CloseEvent('eventType').wasClean", "false"); | 14 shouldBe("new CloseEvent('eventType').wasClean", "false"); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // All initializers are passed. | 79 // All initializers are passed. |
| 80 shouldBe("new CloseEvent('eventType', { bubbles: true, cancelable: true, wasClea
n: true, code : 12345, reason: 'koakuma' }).bubbles", "true"); | 80 shouldBe("new CloseEvent('eventType', { bubbles: true, cancelable: true, wasClea
n: true, code : 12345, reason: 'koakuma' }).bubbles", "true"); |
| 81 shouldBe("new CloseEvent('eventType', { bubbles: true, cancelable: true, wasClea
n: true, code : 12345, reason: 'koakuma' }).cancelable", "true"); | 81 shouldBe("new CloseEvent('eventType', { bubbles: true, cancelable: true, wasClea
n: true, code : 12345, reason: 'koakuma' }).cancelable", "true"); |
| 82 shouldBe("new CloseEvent('eventType', { bubbles: true, cancelable: true, wasClea
n: true, code : 12345, reason: 'koakuma' }).wasClean", "true"); | 82 shouldBe("new CloseEvent('eventType', { bubbles: true, cancelable: true, wasClea
n: true, code : 12345, reason: 'koakuma' }).wasClean", "true"); |
| 83 shouldBe("new CloseEvent('eventType', { bubbles: true, cancelable: true, wasClea
n: true, code : 12345, reason: 'koakuma' }).code", "12345"); | 83 shouldBe("new CloseEvent('eventType', { bubbles: true, cancelable: true, wasClea
n: true, code : 12345, reason: 'koakuma' }).code", "12345"); |
| 84 shouldBeEqualToString("new CloseEvent('eventType', { bubbles: true, cancelable:
true, wasClean: true, code : 12345, reason: 'koakuma' }).reason", "koakuma"); | 84 shouldBeEqualToString("new CloseEvent('eventType', { bubbles: true, cancelable:
true, wasClean: true, code : 12345, reason: 'koakuma' }).reason", "koakuma"); |
| 85 </script> | 85 </script> |
| 86 </body> | 86 </body> |
| 87 </html> | 87 </html> |
| OLD | NEW |