OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="help" href="http://www.w3.org/TR/2012/WD-dom-20121206/#interface-domi
mplementation"> | 4 <link rel="help" href="http://www.w3.org/TR/2012/WD-dom-20121206/#interface-domi
mplementation"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 description("Checks that the DOMImplementation api arguments are correctly valid
ated") | 9 description("Checks that the DOMImplementation api arguments are correctly valid
ated") |
10 | 10 |
11 var testDocument, testPrototype, testNamespace, testQualifiedName, testDocType; | 11 var testDocument, testPrototype, testNamespace, testQualifiedName, testDocType; |
12 function validateDocument(document, prototype, namespace, qualifiedName, docType
) | 12 function validateDocument(document, prototype, namespace, qualifiedName, docType
) |
13 { | 13 { |
14 testDocument = document; | 14 testDocument = document; |
15 testPrototype = prototype; | 15 testPrototype = prototype; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 validateDocument(doc, 'XMLDocument', "namespace", "qualifiedName", docType); | 64 validateDocument(doc, 'XMLDocument', "namespace", "qualifiedName", docType); |
65 | 65 |
66 debug('\nDocument createHTMLDocument(optional DOMString title);'); | 66 debug('\nDocument createHTMLDocument(optional DOMString title);'); |
67 shouldNotThrow('doc = document.implementation.createHTMLDocument()'); | 67 shouldNotThrow('doc = document.implementation.createHTMLDocument()'); |
68 validateDocument(doc, 'HTMLDocument', "http://www.w3.org/1999/xhtml", "HTML", do
c.doctype); | 68 validateDocument(doc, 'HTMLDocument', "http://www.w3.org/1999/xhtml", "HTML", do
c.doctype); |
69 shouldNotThrow('doc = document.implementation.createHTMLDocument("title")'); | 69 shouldNotThrow('doc = document.implementation.createHTMLDocument("title")'); |
70 validateDocument(doc, 'HTMLDocument', "http://www.w3.org/1999/xhtml", "HTML", do
c.doctype); | 70 validateDocument(doc, 'HTMLDocument', "http://www.w3.org/1999/xhtml", "HTML", do
c.doctype); |
71 </script> | 71 </script> |
72 </body> | 72 </body> |
73 </html> | 73 </html> |
OLD | NEW |