blob: 1f1be6a528f1373459ec83fb045f0fc1ac3d091e [file] [log] [blame]
This page tests global constructor objects like window.HTMLDocument. If it passes, you'll see a series of 'PASS' messages below.
PASS: DOMParser.prototype.isPrototypeOf(domParser) should be true and is.
PASS: XMLHttpRequest.prototype.isPrototypeOf(xmlHttpRequest) should be true and is.
PASS: XMLSerializer.prototype.isPrototypeOf(xmlSerializer) should be true and is.
PASS: XSLTProcessor.prototype.isPrototypeOf(xsltProcessor) should be true and is.
PASS: window.Document.prototype.isPrototypeOf(document) should be true and is.
PASS: window.HTMLDocument.prototype.isPrototypeOf(document) should be true and is.
PASS: window.Node.prototype.isPrototypeOf(element) should be true and is.
PASS: window.Element.prototype.isPrototypeOf(element) should be true and is.
PASS: window.HTMLElement.prototype.isPrototypeOf(element) should be true and is.
PASS: window.Range.prototype.isPrototypeOf(range) should be true and is.
PASS: window.CSSRule.prototype.isPrototypeOf(cssRule) should be true and is.
PASS: window.CSSValue.prototype.isPrototypeOf(cssPrimitiveValue) should be true and is.
PASS: window.CSSPrimitiveValue.prototype.isPrototypeOf(cssPrimitiveValue) should be true and is.
PASS: window.CSSStyleDeclaration.prototype.isPrototypeOf(cssStyleDeclaration) should be true and is.
PASS: window.Event.prototype.isPrototypeOf(event) should be true and is.
PASS: window.MutationEvent.prototype.isPrototypeOf(event) should be true and is.
PASS: window.XMLDocument.prototype.isPrototypeOf(xmldoc) should be true and is.
PASS: window.DocumentFragment.prototype.isPrototypeOf(fragment) should be true and is.
PASS: window.XPathEvaluator.prototype.isPrototypeOf(xpathevaluator) should be true and is.
PASS: window.XPathResult.prototype.isPrototypeOf(xpathresult) should be true and is.
PASS: window.NodeFilter.prototype.isPrototypeOf(nodeFilter) should be true and is.
[Deleted window.Node.prototype]
PASS: window.Node.prototype should be undefined and is.
[Set window.Node = 1]
PASS: window.Node should be 1 and is.
[Deleted window.Node]
PASS: window.Node should be [object NodeConstructor] and is.
[Added an iframe named 'Node']
PASS: window.Node should be [object NodeConstructor] and is.