OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <script> |
| 8 var doctype = document.implementation.createDocumentType("x", "x", "x"); |
| 9 shouldBeType("doctype", "DocumentType"); |
| 10 shouldNotThrow("document.implementation.createDocument(null, null, doctype)"); |
| 11 shouldNotThrow("document.implementation.createDocument(null, null, undefined)"); |
| 12 shouldNotThrow("document.implementation.createDocument(null, null, null)"); |
| 13 |
| 14 shouldThrow("document.implementation.createDocument(null, null, false)"); |
| 15 shouldThrow("document.implementation.createDocument(null, null, 0)"); |
| 16 shouldThrow("document.implementation.createDocument(null, null, '')"); |
| 17 shouldThrow("document.implementation.createDocument(null, null, {})"); |
| 18 </script> |
| 19 </body> |
| 20 </html> |
OLD | NEW |