1 This test checks that all but a handful of dom constructors throw exceptions, and the rest return reasonable objects. It also tests that those constructors have higher precedence than a document element with the same ID or name.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS TryAllocate('Attr') is 'exception'
7 PASS TryAllocate('CharacterData') is 'exception'
8 PASS TryAllocate('CDATASection') is 'exception'
9 PASS TryAllocate('Document') is 'exception'
10 PASS TryAllocate('DocumentType') is 'exception'
11 PASS TryAllocate('Element') is 'exception'
12 PASS TryAllocate('EventTarget') is 'exception'
13 PASS TryAllocate('HTMLDocument') is 'exception'
14 PASS TryAllocate('Node') is 'exception'
15 PASS TryAllocate('ProcessingInstruction') is 'exception'
16 PASS TryAllocate('HTMLAllCollection') is 'exception'
17 PASS TryAllocate('HTMLAnchorElement') is 'exception'
18 PASS TryAllocate('HTMLAreaElement') is 'exception'
19 PASS TryAllocate('HTMLBaseElement') is 'exception'
20 PASS TryAllocate('HTMLBodyElement') is 'exception'
21 PASS TryAllocate('HTMLBRElement') is 'exception'
22 PASS TryAllocate('HTMLButtonElement') is 'exception'
23 PASS TryAllocate('HTMLCanvasElement') is 'exception'
24 PASS TryAllocate('HTMLDirectoryElement') is 'exception'
25 PASS TryAllocate('HTMLDivElement') is 'exception'
26 PASS TryAllocate('HTMLDListElement') is 'exception'
27 PASS TryAllocate('HTMLEmbedElement') is 'exception'
28 PASS TryAllocate('HTMLFieldSetElement') is 'exception'
29 PASS TryAllocate('HTMLFontElement') is 'exception'
30 PASS TryAllocate('HTMLFormElement') is 'exception'
31 PASS TryAllocate('HTMLFrameElement') is 'exception'
32 PASS TryAllocate('HTMLFrameSetElement') is 'exception'
33 PASS TryAllocate('HTMLHeadingElement') is 'exception'
34 PASS TryAllocate('HTMLHeadElement') is 'exception'
35 PASS TryAllocate('HTMLHRElement') is 'exception'
36 PASS TryAllocate('HTMLHtmlElement') is 'exception'
37 PASS TryAllocate('HTMLIFrameElement') is 'exception'
38 PASS TryAllocate('HTMLImageElement') is 'exception'
39 PASS TryAllocate('HTMLInputElement') is 'exception'
40 PASS TryAllocate('HTMLLabelElement') is 'exception'
41 PASS TryAllocate('HTMLLegendElement') is 'exception'
42 PASS TryAllocate('HTMLLIElement') is 'exception'
43 PASS TryAllocate('HTMLLinkElement') is 'exception'
44 PASS TryAllocate('HTMLMapElement') is 'exception'
45 PASS TryAllocate('HTMLMarqueeElement') is 'exception'
46 PASS TryAllocate('HTMLMenuElement') is 'exception'
47 PASS TryAllocate('HTMLMetaElement') is 'exception'
48 PASS TryAllocate('HTMLModElement') is 'exception'
49 PASS TryAllocate('HTMLObjectElement') is 'exception'
50 PASS TryAllocate('HTMLOListElement') is 'exception'
51 PASS TryAllocate('HTMLOptGroupElement') is 'exception'
52 PASS TryAllocate('HTMLOptionElement') is 'exception'
53 PASS TryAllocate('HTMLParagraphElement') is 'exception'
54 PASS TryAllocate('HTMLParamElement') is 'exception'
55 PASS TryAllocate('HTMLPreElement') is 'exception'
56 PASS TryAllocate('HTMLQuoteElement') is 'exception'
57 PASS TryAllocate('HTMLScriptElement') is 'exception'
58 PASS TryAllocate('HTMLSelectElement') is 'exception'
59 PASS TryAllocate('HTMLStyleElement') is 'exception'
60 PASS TryAllocate('HTMLTableCaptionElement') is 'exception'
61 PASS TryAllocate('HTMLTableColElement') is 'exception'
62 PASS TryAllocate('HTMLTableElement') is 'exception'
63 PASS TryAllocate('HTMLTableSectionElement') is 'exception'
64 PASS TryAllocate('HTMLTableCellElement') is 'exception'
65 PASS TryAllocate('HTMLTableRowElement') is 'exception'
66 PASS TryAllocate('HTMLTextAreaElement') is 'exception'
67 PASS TryAllocate('HTMLTitleElement') is 'exception'
68 PASS TryAllocate('HTMLUListElement') is 'exception'
69 PASS TryAllocate('HTMLElement') is 'exception'
70 PASS TryAllocate('CanvasRenderingContext2D') is 'exception'
71 PASS TryAllocate('CSSFontFaceRule') is 'exception'
72 PASS TryAllocate('CSSImportRule') is 'exception'
73 PASS TryAllocate('CSSMediaRule') is 'exception'
74 PASS TryAllocate('CSSPageRule') is 'exception'
75 PASS TryAllocate('CSSRule') is 'exception'
76 PASS TryAllocate('CSSRuleList') is 'exception'
77 PASS TryAllocate('CSSStyleDeclaration') is 'exception'
78 PASS TryAllocate('CSSStyleRule') is 'exception'
79 PASS TryAllocate('CSSStyleSheet') is 'exception'
80 PASS TryAllocate('DOMImplementation') is 'exception'
81 PASS TryAllocate('DataTransfer') is 'exception'
82 PASS TryAllocate('HTMLCollection') is 'exception'
83 PASS TryAllocate('MediaList') is 'exception'
84 PASS TryAllocate('MimeType') is 'exception'
85 PASS TryAllocate('MimeTypeArray') is 'exception'
86 PASS TryAllocate('MutationEvent') is 'exception'
87 PASS TryAllocate('NamedNodeMap') is 'exception'
88 PASS TryAllocate('NodeFilter') is 'exception'
89 PASS TryAllocate('NodeList') is 'exception'
90 PASS TryAllocate('Plugin') is 'exception'
91 PASS TryAllocate('PluginArray') is 'exception'
92 PASS TryAllocate('StyleSheet') is 'exception'
93 PASS TryAllocate('StyleSheetList') is 'exception'
94 PASS TryAllocate('TextEvent') is 'exception'
95 PASS TryAllocate('XPathResult') is 'exception'
96 FAIL TryAllocate('BarInfo') should be exception. Was no constructor.
97 PASS TryAllocate('CanvasGradient') is 'exception'
98 PASS TryAllocate('CanvasPattern') is 'exception'
99 FAIL TryAllocate('Console') should be exception. Was no constructor.
100 PASS TryAllocate('Selection') is 'exception'
101 PASS TryAllocate('Window') is 'exception'
102 PASS TryAllocate('History') is 'exception'
103 PASS TryAllocate('HTMLOptionsCollection') is 'exception'
104 PASS TryAllocate('Location') is 'exception'
105 PASS TryAllocate('Navigator') is 'exception'
106 PASS TryAllocate('NodeIterator') is 'exception'
107 PASS TryAllocate('Screen') is 'exception'
108 PASS TryAllocate('TreeWalker') is 'exception'
109 PASS TryAllocate('XPathExpression') is 'exception'
110 PASS TryAllocate('Worker') is 'exception'
111 PASS TryAllocate('EventTargetNode') is 'no constructor'
112 PASS TryAllocate('UndetectableHTMLCollection') is 'no constructor'
113 PASS TryAllocate('XPathNSResolver') is 'no constructor'
114 PASS TryAllocate('EventListener') is 'no constructor'
115 PASS TryAllocate('NPObject') is 'no constructor'
116 PASS TryAllocate('Comment') is '[object Comment]'
117 PASS TryAllocate('Comment') is '[object Comment]'
118 PASS TryAllocate('Comment') is '[object Comment]'
119 PASS TryAllocate('DOMParser') is '[object DOMParser]'
120 PASS TryAllocate('DOMParser') is '[object DOMParser]'
121 PASS TryAllocate('DOMParser') is '[object DOMParser]'
122 PASS TryAllocate('DocumentFragment') is '[object DocumentFragment]'
123 PASS TryAllocate('DocumentFragment') is '[object DocumentFragment]'
124 PASS TryAllocate('DocumentFragment') is '[object DocumentFragment]'
125 PASS TryAllocate('Range') is '[object Range]'
126 PASS TryAllocate('Range') is '[object Range]'
127 PASS TryAllocate('Range') is '[object Range]'
128 PASS TryAllocate('Text') is '[object Text]'
129 PASS TryAllocate('Text') is '[object Text]'
130 PASS TryAllocate('Text') is '[object Text]'
131 PASS TryAllocate('XMLHttpRequest') is '[object XMLHttpRequest]'
132 PASS TryAllocate('XMLHttpRequest') is '[object XMLHttpRequest]'
133 PASS TryAllocate('XMLHttpRequest') is '[object XMLHttpRequest]'
134 PASS TryAllocate('XMLSerializer') is '[object XMLSerializer]'
135 PASS TryAllocate('XMLSerializer') is '[object XMLSerializer]'
136 PASS TryAllocate('XMLSerializer') is '[object XMLSerializer]'
137 PASS TryAllocate('XPathEvaluator') is '[object XPathEvaluator]'
138 PASS TryAllocate('XPathEvaluator') is '[object XPathEvaluator]'
139 PASS TryAllocate('XPathEvaluator') is '[object XPathEvaluator]'
140 PASS TryAllocate('XSLTProcessor') is '[object XSLTProcessor]'
141 PASS TryAllocate('XSLTProcessor') is '[object XSLTProcessor]'
142 PASS TryAllocate('XSLTProcessor') is '[object XSLTProcessor]'
143 PASS TryAllocate('Audio') is '[object HTMLAudioElement]'
144 PASS TryAllocate('Audio') is '[object HTMLAudioElement]'
145 PASS TryAllocate('Audio') is '[object HTMLAudioElement]'
146 PASS TryAllocate('Option') is '[object HTMLOptionElement]'
147 PASS TryAllocate('Option') is '[object HTMLOptionElement]'
148 PASS TryAllocate('Option') is '[object HTMLOptionElement]'
149 PASS TryAllocate('Image') is '[object HTMLImageElement]'
150 PASS TryAllocate('Image') is '[object HTMLImageElement]'
151 PASS TryAllocate('Image') is '[object HTMLImageElement]'
152 PASS successfullyParsed is true