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()) is "Attr" |
12 FAIL classString(document.createAttribute().__proto__) should be AttrPrototype.
Was Object. | 12 FAIL classString(document.createAttribute().__proto__) should be AttrPrototype.
Was Object. |
13 PASS classString(document.createAttribute().constructor) is "Function" | 13 PASS classString(document.createAttribute().constructor) is "Function" |
14 PASS document.createAttribute().constructor.name is "Attr" | 14 PASS document.createAttribute().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 CommentPrototype.
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. |
25 PASS classString(document.implementation.constructor) is "Function" | 25 PASS classString(document.implementation.constructor) is "Function" |
26 PASS document.implementation.constructor.name is "DOMImplementation" | 26 PASS document.implementation.constructor.name is "DOMImplementation" |
27 PASS classString(root.attributes) is "NamedNodeMap" | 27 PASS classString(root.attributes) is "NamedNodeMap" |
28 FAIL classString(root.attributes.__proto__) should be NamedNodeMapPrototype. Was
Object. | 28 FAIL classString(root.attributes.__proto__) should be NamedNodeMapPrototype. Was
Object. |
29 PASS classString(root.attributes.constructor) is "Function" | 29 PASS classString(root.attributes.constructor) is "Function" |
30 PASS root.attributes.constructor.name is "NamedNodeMap" | 30 PASS root.attributes.constructor.name is "NamedNodeMap" |
31 PASS classString(document.createNodeIterator(root, 0, null, false)) is "NodeIter
ator" | 31 PASS classString(document.createNodeIterator(root, 0, null, false)) is "NodeIter
ator" |
32 FAIL classString(document.createNodeIterator(root, 0, null, false).__proto__) sh
ould be NodeIteratorPrototype. Was Object. | 32 FAIL classString(document.createNodeIterator(root, 0, null, false).__proto__) sh
ould be NodeIteratorPrototype. Was Object. |
33 PASS classString(document.createNodeIterator(root, 0, null, false).constructor)
is "Function" | 33 PASS classString(document.createNodeIterator(root, 0, null, false).constructor)
is "Function" |
34 PASS document.createNodeIterator(root, 0, null, false).constructor.name is "Node
Iterator" | 34 PASS document.createNodeIterator(root, 0, null, false).constructor.name is "Node
Iterator" |
35 PASS classString(document.getElementsByTagName('div')) is "NodeList" | 35 PASS classString(document.getElementsByTagName('div')) is "NodeList" |
36 FAIL classString(document.getElementsByTagName('div').__proto__) should be NodeL
istPrototype. Was Object. | 36 FAIL classString(document.getElementsByTagName('div').__proto__) should be NodeL
istPrototype. Was Object. |
37 PASS classString(document.getElementsByTagName('div').constructor) is "Function" | 37 PASS classString(document.getElementsByTagName('div').constructor) is "Function" |
38 PASS document.getElementsByTagName('div').constructor.name is "NodeList" | 38 PASS document.getElementsByTagName('div').constructor.name is "NodeList" |
39 PASS classString(document.createRange()) is "Range" | 39 PASS classString(document.createRange()) is "Range" |
40 FAIL classString(document.createRange().__proto__) should be RangePrototype. Was
Object. | 40 FAIL classString(document.createRange().__proto__) should be RangePrototype. Was
Object. |
41 PASS classString(document.createRange().constructor) is "Function" | 41 PASS classString(document.createRange().constructor) is "Function" |
42 PASS document.createRange().constructor.name is "Range" | 42 PASS document.createRange().constructor.name is "Range" |
43 PASS classString(document.createTextNode()) is "Text" | 43 PASS classString(document.createTextNode('')) is "Text" |
44 FAIL classString(document.createTextNode().__proto__) should be TextPrototype. W
as Object. | 44 FAIL classString(document.createTextNode('').__proto__) should be TextPrototype.
Was Object. |
45 PASS classString(document.createTextNode().constructor) is "Function" | 45 PASS classString(document.createTextNode('').constructor) is "Function" |
46 PASS document.createTextNode().constructor.name is "Text" | 46 PASS document.createTextNode('').constructor.name is "Text" |
47 PASS classString(document.createTreeWalker(root, 0, null, false)) is "TreeWalker
" | 47 PASS classString(document.createTreeWalker(root, 0, null, false)) is "TreeWalker
" |
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 "Document" | 54 PASS classString(xmlDocument) is "Document" |
55 FAIL classString(xmlDocument.__proto__) should be DocumentPrototype. Was Object. | 55 FAIL classString(xmlDocument.__proto__) should be DocumentPrototype. Was Object. |
56 PASS classString(xmlDocument.constructor) is "Function" | 56 PASS classString(xmlDocument.constructor) is "Function" |
57 PASS xmlDocument.constructor.name is "Document" | 57 PASS xmlDocument.constructor.name is "Document" |
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 CDATASect
ionPrototype. 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()) is "ProcessingInstru
ction" | 66 PASS classString(xmlDocument.createProcessingInstruction('x', '')) is "Processin
gInstruction" |
67 FAIL classString(xmlDocument.createProcessingInstruction().__proto__) should be
ProcessingInstructionPrototype. Was Object. | 67 FAIL classString(xmlDocument.createProcessingInstruction('x', '').__proto__) sho
uld be ProcessingInstructionPrototype. Was Object. |
68 PASS classString(xmlDocument.createProcessingInstruction().constructor) is "Func
tion" | 68 PASS classString(xmlDocument.createProcessingInstruction('x', '').constructor) i
s "Function" |
69 PASS xmlDocument.createProcessingInstruction().constructor.name is "ProcessingIn
struction" | 69 PASS xmlDocument.createProcessingInstruction('x', '').constructor.name is "Proce
ssingInstruction" |
70 | 70 |
71 Events | 71 Events |
72 | 72 |
73 PASS classString(document.createEvent('Event')) is "Event" | 73 PASS classString(document.createEvent('Event')) is "Event" |
74 FAIL classString(document.createEvent('Event').__proto__) should be EventPrototy
pe. Was Object. | 74 FAIL classString(document.createEvent('Event').__proto__) should be EventPrototy
pe. Was Object. |
75 PASS classString(document.createEvent('Event').constructor) is "Function" | 75 PASS classString(document.createEvent('Event').constructor) is "Function" |
76 PASS document.createEvent('Event').constructor.name is "Event" | 76 PASS document.createEvent('Event').constructor.name is "Event" |
77 PASS classString(document.createEvent('KeyboardEvent')) is "KeyboardEvent" | 77 PASS classString(document.createEvent('KeyboardEvent')) is "KeyboardEvent" |
78 FAIL classString(document.createEvent('KeyboardEvent').__proto__) should be Keyb
oardEventPrototype. Was Object. | 78 FAIL classString(document.createEvent('KeyboardEvent').__proto__) should be Keyb
oardEventPrototype. Was Object. |
79 PASS classString(document.createEvent('KeyboardEvent').constructor) is "Function
" | 79 PASS classString(document.createEvent('KeyboardEvent').constructor) is "Function
" |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 PASS tagConstructorName('var') is "HTMLElement" | 639 PASS tagConstructorName('var') is "HTMLElement" |
640 PASS tagClassString('wbr') is "HTMLElement" | 640 PASS tagClassString('wbr') is "HTMLElement" |
641 FAIL tagPrototypeClassString('wbr') should be HTMLElementPrototype. Was Object. | 641 FAIL tagPrototypeClassString('wbr') should be HTMLElementPrototype. Was Object. |
642 PASS tagConstructorClassString('wbr') is "Function" | 642 PASS tagConstructorClassString('wbr') is "Function" |
643 PASS tagConstructorName('wbr') is "HTMLElement" | 643 PASS tagConstructorName('wbr') is "HTMLElement" |
644 PASS tagClassString('xmp') is "HTMLPreElement" | 644 PASS tagClassString('xmp') is "HTMLPreElement" |
645 FAIL tagPrototypeClassString('xmp') should be HTMLPreElementPrototype. Was Objec
t. | 645 FAIL tagPrototypeClassString('xmp') should be HTMLPreElementPrototype. Was Objec
t. |
646 PASS tagConstructorClassString('xmp') is "Function" | 646 PASS tagConstructorClassString('xmp') is "Function" |
647 PASS tagConstructorName('xmp') is "HTMLPreElement" | 647 PASS tagConstructorName('xmp') is "HTMLPreElement" |
648 | 648 |
OLD | NEW |