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 description('Check that DOMImplementation.createDocument() returns an XMLDocumen t.'); | |
9 | |
10 shouldBeEqualToString('window.XMLDocument.name', 'XMLDocument'); | |
11 | |
12 shouldBe('document.implementation.createDocument("", "").__proto__', 'XMLDocumen t.prototype'); | |
arv (Not doing code reviews)
2014/01/22 15:24:19
Can you also add a test that XMLDocument.prototype
Inactive
2014/01/22 15:39:26
Good idea, will do.
Inactive
2014/01/22 15:51:52
Done.
| |
13 shouldBe('document.implementation.createDocument("", "html").__proto__', 'XMLDoc ument.prototype'); | |
14 shouldBe('document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html").__proto__', 'XMLDocument.prototype'); | |
15 shouldBe('document.implementation.createDocument("http://www.w3.org/2000/xmlns/" , "xmlns:test").__proto__', 'XMLDocument.prototype'); | |
16 // FIXME: This is not passing yet, this currently returns an SVGDocument which i s no longer part of SVG2. | |
17 shouldBe('document.implementation.createDocument("http://www.w3.org/2000/svg", " svg").__proto__', 'XMLDocument.prototype'); | |
18 </script> | |
19 </body> | |
20 </html> | |
21 | |
OLD | NEW |