OLD | NEW |
1 This tests wrapper class names for JavaScript. | 1 This tests wrapper class names for JavaScript. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS successfullyParsed is true | 6 PASS successfullyParsed is true |
7 | 7 |
8 TEST COMPLETE | 8 TEST COMPLETE |
9 Basics | 9 Basics |
10 | 10 |
11 PASS classString(document.createAttribute()) is "Attr" | 11 PASS classString(document.createAttribute('x')) is "Attr" |
12 FAIL classString(document.createAttribute().__proto__) should be AttrPrototype.
Was Object. | 12 FAIL classString(document.createAttribute('x').__proto__) should be AttrPrototyp
e. Was Object. |
13 PASS classString(document.createAttribute().constructor) is "Function" | 13 PASS classString(document.createAttribute('x').constructor) is "Function" |
14 PASS document.createAttribute().constructor.name is "Attr" | 14 PASS document.createAttribute('x').constructor.name is "Attr" |
15 PASS classString(document.createComment('')) is "Comment" | 15 PASS classString(document.createComment('')) is "Comment" |
16 FAIL classString(document.createComment('').__proto__) should be CommentPrototyp
e. Was Object. | 16 FAIL classString(document.createComment('').__proto__) should be CommentPrototyp
e. Was Object. |
17 PASS classString(document.createComment('').constructor) is "Function" | 17 PASS classString(document.createComment('').constructor) is "Function" |
18 PASS document.createComment('').constructor.name is "Comment" | 18 PASS document.createComment('').constructor.name is "Comment" |
19 PASS classString(document.createDocumentFragment()) is "DocumentFragment" | 19 PASS classString(document.createDocumentFragment()) is "DocumentFragment" |
20 FAIL classString(document.createDocumentFragment().__proto__) should be Document
FragmentPrototype. Was Object. | 20 FAIL classString(document.createDocumentFragment().__proto__) should be Document
FragmentPrototype. Was Object. |
21 PASS classString(document.createDocumentFragment().constructor) is "Function" | 21 PASS classString(document.createDocumentFragment().constructor) is "Function" |
22 PASS document.createDocumentFragment().constructor.name is "DocumentFragment" | 22 PASS document.createDocumentFragment().constructor.name is "DocumentFragment" |
23 PASS classString(document.implementation) is "DOMImplementation" | 23 PASS classString(document.implementation) is "DOMImplementation" |
24 FAIL classString(document.implementation.__proto__) should be DOMImplementationP
rototype. Was Object. | 24 FAIL classString(document.implementation.__proto__) should be DOMImplementationP
rototype. Was Object. |
(...skipping 23 matching lines...) Expand all Loading... |
48 FAIL classString(document.createTreeWalker(root, 0, null, false).__proto__) shou
ld be TreeWalkerPrototype. Was Object. | 48 FAIL classString(document.createTreeWalker(root, 0, null, false).__proto__) shou
ld be TreeWalkerPrototype. Was Object. |
49 PASS classString(document.createTreeWalker(root, 0, null, false).constructor) is
"Function" | 49 PASS classString(document.createTreeWalker(root, 0, null, false).constructor) is
"Function" |
50 PASS document.createTreeWalker(root, 0, null, false).constructor.name is "TreeWa
lker" | 50 PASS document.createTreeWalker(root, 0, null, false).constructor.name is "TreeWa
lker" |
51 | 51 |
52 XML | 52 XML |
53 | 53 |
54 PASS classString(xmlDocument) is "XMLDocument" | 54 PASS classString(xmlDocument) is "XMLDocument" |
55 FAIL classString(xmlDocument.__proto__) should be XMLDocumentPrototype. Was Obje
ct. | 55 FAIL classString(xmlDocument.__proto__) should be XMLDocumentPrototype. Was Obje
ct. |
56 PASS classString(xmlDocument.constructor) is "Function" | 56 PASS classString(xmlDocument.constructor) is "Function" |
57 PASS xmlDocument.constructor.name is "XMLDocument" | 57 PASS xmlDocument.constructor.name is "XMLDocument" |
58 PASS classString(xmlDocument.createCDATASection()) is "CDATASection" | 58 PASS classString(xmlDocument.createCDATASection('')) is "CDATASection" |
59 FAIL classString(xmlDocument.createCDATASection().__proto__) should be CDATASect
ionPrototype. Was Object. | 59 FAIL classString(xmlDocument.createCDATASection('').__proto__) should be CDATASe
ctionPrototype. Was Object. |
60 PASS classString(xmlDocument.createCDATASection().constructor) is "Function" | 60 PASS classString(xmlDocument.createCDATASection('').constructor) is "Function" |
61 PASS xmlDocument.createCDATASection().constructor.name is "CDATASection" | 61 PASS xmlDocument.createCDATASection('').constructor.name is "CDATASection" |
62 PASS classString(xmlDocument.createElementNS('x', 'x', 'x')) is "Element" | 62 PASS classString(xmlDocument.createElementNS('x', 'x', 'x')) is "Element" |
63 FAIL classString(xmlDocument.createElementNS('x', 'x', 'x').__proto__) should be
ElementPrototype. Was Object. | 63 FAIL classString(xmlDocument.createElementNS('x', 'x', 'x').__proto__) should be
ElementPrototype. Was Object. |
64 PASS classString(xmlDocument.createElementNS('x', 'x', 'x').constructor) is "Fun
ction" | 64 PASS classString(xmlDocument.createElementNS('x', 'x', 'x').constructor) is "Fun
ction" |
65 PASS xmlDocument.createElementNS('x', 'x', 'x').constructor.name is "Element" | 65 PASS xmlDocument.createElementNS('x', 'x', 'x').constructor.name is "Element" |
66 PASS classString(xmlDocument.createProcessingInstruction('x', '')) is "Processin
gInstruction" | 66 PASS classString(xmlDocument.createProcessingInstruction('x', '')) is "Processin
gInstruction" |
67 FAIL classString(xmlDocument.createProcessingInstruction('x', '').__proto__) sho
uld be ProcessingInstructionPrototype. Was Object. | 67 FAIL classString(xmlDocument.createProcessingInstruction('x', '').__proto__) sho
uld be ProcessingInstructionPrototype. Was Object. |
68 PASS classString(xmlDocument.createProcessingInstruction('x', '').constructor) i
s "Function" | 68 PASS classString(xmlDocument.createProcessingInstruction('x', '').constructor) i
s "Function" |
69 PASS xmlDocument.createProcessingInstruction('x', '').constructor.name is "Proce
ssingInstruction" | 69 PASS xmlDocument.createProcessingInstruction('x', '').constructor.name is "Proce
ssingInstruction" |
70 | 70 |
71 Events | 71 Events |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 PASS tagConstructorName('var') is "HTMLElement" | 619 PASS tagConstructorName('var') is "HTMLElement" |
620 PASS tagClassString('wbr') is "HTMLElement" | 620 PASS tagClassString('wbr') is "HTMLElement" |
621 FAIL tagPrototypeClassString('wbr') should be HTMLElementPrototype. Was Object. | 621 FAIL tagPrototypeClassString('wbr') should be HTMLElementPrototype. Was Object. |
622 PASS tagConstructorClassString('wbr') is "Function" | 622 PASS tagConstructorClassString('wbr') is "Function" |
623 PASS tagConstructorName('wbr') is "HTMLElement" | 623 PASS tagConstructorName('wbr') is "HTMLElement" |
624 PASS tagClassString('xmp') is "HTMLPreElement" | 624 PASS tagClassString('xmp') is "HTMLPreElement" |
625 FAIL tagPrototypeClassString('xmp') should be HTMLPreElementPrototype. Was Objec
t. | 625 FAIL tagPrototypeClassString('xmp') should be HTMLPreElementPrototype. Was Objec
t. |
626 PASS tagConstructorClassString('xmp') is "Function" | 626 PASS tagConstructorClassString('xmp') is "Function" |
627 PASS tagConstructorName('xmp') is "HTMLPreElement" | 627 PASS tagConstructorName('xmp') is "HTMLPreElement" |
628 | 628 |
OLD | NEW |