| 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 CustomEvent DOM class."); | 9 description("This tests the constructor for the CustomEvent DOM class."); |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Detail is null. | 37 // Detail is null. |
| 38 shouldBe("new CustomEvent('eventType', { detail: null }).detail", "null"); | 38 shouldBe("new CustomEvent('eventType', { detail: null }).detail", "null"); |
| 39 | 39 |
| 40 // Detail is a getter. | 40 // Detail is a getter. |
| 41 shouldBe("new CustomEvent('eventType', { get detail() { return true; } }).detail
", "true"); | 41 shouldBe("new CustomEvent('eventType', { get detail() { return true; } }).detail
", "true"); |
| 42 | 42 |
| 43 // Detail throws an exeception. | 43 // Detail throws an exeception. |
| 44 shouldThrow("new CustomEvent('eventType', { get detail() { throw 'Custom Error';
} })"); | 44 shouldThrow("new CustomEvent('eventType', { get detail() { throw 'Custom Error';
} })"); |
| 45 </script> | 45 </script> |
| 46 <script src="../../js/resources/js-test-post.js"></script> | |
| 47 </body> | 46 </body> |
| 48 </html> | 47 </html> |
| OLD | NEW |