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 CloseEvent DOM class."); | 9 description("This tests the constructor for the CloseEvent DOM class."); |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 shouldBe("new CloseEvent('eventType', { code: {moemoe: 12345} }).code", "0"); | 76 shouldBe("new CloseEvent('eventType', { code: {moemoe: 12345} }).code", "0"); |
77 shouldBe("new CloseEvent('eventType', { code: {valueOf: function () { return 123
45; }} }).code", "12345"); | 77 shouldBe("new CloseEvent('eventType', { code: {valueOf: function () { return 123
45; }} }).code", "12345"); |
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 <script src="../../js/resources/js-test-post.js"></script> | |
87 </body> | 86 </body> |
88 </html> | 87 </html> |
OLD | NEW |