This test checks that all but a handful of dom constructors throw exceptions, and the rest return reasonable objects.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


PASS TryAllocate('Attr') is 'exception'
PASS TryAllocate('CharacterData') is 'exception'
PASS TryAllocate('CDATASection') is 'exception'
PASS TryAllocate('Comment') is 'exception'
PASS TryAllocate('Document') is 'exception'
PASS TryAllocate('DocumentFragment') is 'exception'
PASS TryAllocate('DocumentType') is 'exception'
PASS TryAllocate('Element') is 'exception'
PASS TryAllocate('Entity') is 'exception'
PASS TryAllocate('EntityReference') is 'exception'
PASS TryAllocate('HTMLDocument') is 'exception'
PASS TryAllocate('Node') is 'exception'
PASS TryAllocate('Notation') is 'exception'
PASS TryAllocate('ProcessingInstruction') is 'exception'
PASS TryAllocate('Text') is 'exception'
PASS TryAllocate('HTMLAnchorElement') is 'exception'
PASS TryAllocate('HTMLAppletElement') is 'exception'
PASS TryAllocate('HTMLAreaElement') is 'exception'
PASS TryAllocate('HTMLBaseElement') is 'exception'
PASS TryAllocate('HTMLBaseFontElement') is 'exception'
PASS TryAllocate('HTMLBlockquoteElement') is 'exception'
PASS TryAllocate('HTMLBodyElement') is 'exception'
PASS TryAllocate('HTMLBRElement') is 'exception'
PASS TryAllocate('HTMLButtonElement') is 'exception'
PASS TryAllocate('HTMLCanvasElement') is 'exception'
PASS TryAllocate('HTMLDirectoryElement') is 'exception'
PASS TryAllocate('HTMLDivElement') is 'exception'
PASS TryAllocate('HTMLDListElement') is 'exception'
PASS TryAllocate('HTMLEmbedElement') is 'exception'
PASS TryAllocate('HTMLFieldSetElement') is 'exception'
PASS TryAllocate('HTMLFontElement') is 'exception'
PASS TryAllocate('HTMLFormElement') is 'exception'
PASS TryAllocate('HTMLFrameElement') is 'exception'
PASS TryAllocate('HTMLFrameSetElement') is 'exception'
PASS TryAllocate('HTMLHeadingElement') is 'exception'
PASS TryAllocate('HTMLHeadElement') is 'exception'
PASS TryAllocate('HTMLHRElement') is 'exception'
PASS TryAllocate('HTMLHtmlElement') is 'exception'
PASS TryAllocate('HTMLIFrameElement') is 'exception'
PASS TryAllocate('HTMLImageElement') is 'exception'
PASS TryAllocate('HTMLInputElement') is 'exception'
PASS TryAllocate('HTMLIsIndexElement') is 'exception'
PASS TryAllocate('HTMLLabelElement') is 'exception'
PASS TryAllocate('HTMLLegendElement') is 'exception'
PASS TryAllocate('HTMLLIElement') is 'exception'
PASS TryAllocate('HTMLLinkElement') is 'exception'
PASS TryAllocate('HTMLMapElement') is 'exception'
PASS TryAllocate('HTMLMarqueeElement') is 'exception'
PASS TryAllocate('HTMLMenuElement') is 'exception'
PASS TryAllocate('HTMLMetaElement') is 'exception'
PASS TryAllocate('HTMLModElement') is 'exception'
PASS TryAllocate('HTMLObjectElement') is 'exception'
PASS TryAllocate('HTMLOListElement') is 'exception'
PASS TryAllocate('HTMLOptGroupElement') is 'exception'
PASS TryAllocate('HTMLOptionElement') is 'exception'
PASS TryAllocate('HTMLParagraphElement') is 'exception'
PASS TryAllocate('HTMLParamElement') is 'exception'
PASS TryAllocate('HTMLPreElement') is 'exception'
PASS TryAllocate('HTMLQuoteElement') is 'exception'
PASS TryAllocate('HTMLScriptElement') is 'exception'
PASS TryAllocate('HTMLSelectElement') is 'exception'
PASS TryAllocate('HTMLStyleElement') is 'exception'
PASS TryAllocate('HTMLTableCaptionElement') is 'exception'
PASS TryAllocate('HTMLTableColElement') is 'exception'
PASS TryAllocate('HTMLTableElement') is 'exception'
PASS TryAllocate('HTMLTableSectionElement') is 'exception'
PASS TryAllocate('HTMLTableCellElement') is 'exception'
PASS TryAllocate('HTMLTableRowElement') is 'exception'
PASS TryAllocate('HTMLTextAreaElement') is 'exception'
PASS TryAllocate('HTMLTitleElement') is 'exception'
PASS TryAllocate('HTMLUListElement') is 'exception'
PASS TryAllocate('HTMLElement') is 'exception'
PASS TryAllocate('CanvasRenderingContext2D') is 'exception'
PASS TryAllocate('Clipboard') is 'exception'
PASS TryAllocate('Counter') is 'exception'
PASS TryAllocate('CSSCharsetRule') is 'exception'
PASS TryAllocate('CSSFontFaceRule') is 'exception'
PASS TryAllocate('CSSImportRule') is 'exception'
PASS TryAllocate('CSSMediaRule') is 'exception'
PASS TryAllocate('CSSPageRule') is 'exception'
PASS TryAllocate('CSSPrimitiveValue') is 'exception'
PASS TryAllocate('CSSRule') is 'exception'
PASS TryAllocate('CSSRuleList') is 'exception'
PASS TryAllocate('CSSStyleDeclaration') is 'exception'
PASS TryAllocate('CSSStyleRule') is 'exception'
PASS TryAllocate('CSSStyleSheet') is 'exception'
PASS TryAllocate('CSSValue') is 'exception'
PASS TryAllocate('CSSValueList') is 'exception'
PASS TryAllocate('DOMImplementation') is 'exception'
PASS TryAllocate('Event') is 'exception'
PASS TryAllocate('HTMLCollection') is 'exception'
PASS TryAllocate('KeyboardEvent') is 'exception'
PASS TryAllocate('MediaList') is 'exception'
PASS TryAllocate('MimeType') is 'exception'
PASS TryAllocate('MimeTypeArray') is 'exception'
PASS TryAllocate('MouseEvent') is 'exception'
PASS TryAllocate('MutationEvent') is 'exception'
PASS TryAllocate('NamedNodeMap') is 'exception'
PASS TryAllocate('NodeFilter') is 'exception'
PASS TryAllocate('NodeList') is 'exception'
PASS TryAllocate('OverflowEvent') is 'exception'
PASS TryAllocate('Plugin') is 'exception'
PASS TryAllocate('PluginArray') is 'exception'
PASS TryAllocate('Range') is 'exception'
PASS TryAllocate('Rect') is 'exception'
PASS TryAllocate('StyleSheet') is 'exception'
PASS TryAllocate('StyleSheetList') is 'exception'
PASS TryAllocate('TextEvent') is 'exception'
PASS TryAllocate('UIEvent') is 'exception'
PASS TryAllocate('WheelEvent') is 'exception'
PASS TryAllocate('XPathResult') is 'exception'
FAIL TryAllocate('BarInfo') should be exception. Was no constructor.
FAIL TryAllocate('CanvasGradient') should be exception. Was no constructor.
FAIL TryAllocate('CanvasPattern') should be exception. Was no constructor.
FAIL TryAllocate('Console') should be exception. Was no constructor.
FAIL TryAllocate('DOMSelection') should be exception. Was no constructor.
FAIL TryAllocate('DOMWindow') should be exception. Was no constructor.
FAIL TryAllocate('History') should be exception. Was no constructor.
FAIL TryAllocate('HTMLOptionsCollection') should be exception. Was no constructor.
FAIL TryAllocate('Location') should be exception. Was no constructor.
FAIL TryAllocate('Navigator') should be exception. Was no constructor.
FAIL TryAllocate('NodeIterator') should be exception. Was no constructor.
FAIL TryAllocate('RGBColor') should be exception. Was no constructor.
FAIL TryAllocate('Screen') should be exception. Was no constructor.
FAIL TryAllocate('TreeWalker') should be exception. Was no constructor.
FAIL TryAllocate('XPathExpression') should be exception. Was no constructor.
PASS TryAllocate('Worker') is 'exception'
PASS TryAllocate('EventTargetNode') is 'no constructor'
PASS TryAllocate('UndetectableHTMLCollection') is 'no constructor'
PASS TryAllocate('XPathNSResolver') is 'no constructor'
PASS TryAllocate('EventTarget') is 'no constructor'
PASS TryAllocate('EventListener') is 'no constructor'
PASS TryAllocate('NPObject') is 'no constructor'
PASS TryAllocate('HTMLAllCollection') is 'no constructor'
PASS TryAllocate('DOMParser') is '[object DOMParser]'
PASS TryAllocate('XMLHttpRequest') is '[object XMLHttpRequest]'
PASS TryAllocate('XMLSerializer') is '[object XMLSerializer]'
PASS TryAllocate('XPathEvaluator') is '[object XPathEvaluator]'
PASS TryAllocate('XSLTProcessor') is '[object XSLTProcessor]'
FAIL TryAllocate('MessageChannel') should be [object MessageChannel]. Was no constructor.
PASS TryAllocate('Audio') is '[object HTMLAudioElement]'
PASS TryAllocate('Option') is '[object HTMLOptionElement]'
PASS TryAllocate('Image') is '[object HTMLImageElement]'
PASS successfullyParsed is true

TEST COMPLETE

