HtmlUnit 2.16 JavaScript Support
Generated at Thu Nov 13 19:01:44 CET 2014
This is a mix of 200 mozilla and w3schools properties and functions, tested against HtmlUnit 2.16.
Chrome | Google Chrome |
FF | Mozilla Firefox |
IE | Microsoft Internet Explorer |
GREEN: Property/function exists in all browsers, HtmlUnit test succeeded in all. |
BLUE: Property/function exists in this browsers, HtmlUnit test succeeded. |
ORANGE: Property/function does not exists in this browser, HtmlUnit test failed. |
RED: Property/function does not exists in any browser, HtmlUnit test failed in all. |
Overview
Details
IE8
Property/Function | Value/Return |
window | [object Window] |
document | [object HTMLDocument] |
history | [object History] |
location | http://www.this-page-intentionally-left-blank.org/ |
navigator | [object Navigator] |
screen | [object Screen] |
XMLHttpRequest | function XMLHttpRequest() {
[native code]
} |
window.closed | false |
window.defaultStatus | no such property |
window.document | [object HTMLDocument] |
window.frames | [object Window] |
window.history | [object History] |
window.innerHeight | no such property |
window.innerWidth | no such property |
window.length | 0 |
window.location | http://www.this-page-intentionally-left-blank.org/ |
window.name | |
window.navigator | [object Navigator] |
window.opener | null |
window.outerHeight | no such property |
window.outerWidth | no such property |
window.pageXOffset | no such property |
window.pageYOffset | no such property |
window.parent | [object Window] |
window.screen | [object Screen] |
window.screenLeft | no such property |
window.screenTop | no such property |
window.screenX | no such property |
window.screenY | no such property |
window.self | [object Window] |
window.status | |
window.top | [object Window] |
window.URL | no such property |
window.alert() | undefined |
window.blur() | undefined |
window.confirm() | true |
window.createPopup() | [object Popup] |
window.focus() | undefined |
window.moveBy() | undefined |
window.moveTo() | undefined |
window.open() | [object Window] |
window.close() | undefined |
window.print() | undefined |
window.prompt() | prompt answer |
window.resizeBy() | undefined |
window.resizeTo() | undefined |
window.scrollBy() | undefined |
window.scrollTo() | undefined |
window.setInterval() | 1 |
window.clearInterval() | undefined |
window.setTimeout() | 2 |
window.clearTimeout() | undefined |
window.stop() | no such function |
document.all | [object HTMLCollection] |
document.addEventListener() | no such function |
document.activeElement | [object HTMLBodyElement] |
document.adoptNode() | no such function |
document.anchors | [object HTMLCollection] |
document.applets | [object HTMLCollection] |
document.baseURI | no such property |
document.body | [object HTMLBodyElement] |
document.cookie | |
document.cloneNode() | [object HTMLDocument] |
document.createAttribute() | [object Attr] |
document.createComment() | [object HTMLCommentElement] |
document.createDocumentFragment() | [object DocumentFragment] |
document.createElement() | [object HTMLDivElement] |
document.createTextNode() | [object Text] |
document.doctype | null |
document.documentElement | [object HTMLHtmlElement] |
document.documentURI | no such property |
document.domain | www.this-page-intentionally-left-blank.org |
document.embeds | no such property |
document.forms | [object HTMLCollection] |
document.getElementById() | null |
document.getElementsByClassName() | no such function |
document.getElementsByName() | [object HTMLCollection] |
document.getElementsByTagName() | [object HTMLCollection] |
document.head | no such property |
document.images | [object HTMLCollection] |
document.implementation | [object DOMImplementation] |
document.importNode() | no such function |
document.inputEncoding | no such property |
document.lastModified | 05/13/2005 15:51:54 |
document.links | [object HTMLCollection] |
document.normalize() | undefined |
document.normalizeDocument() | no such function |
document.open(2) | null |
document.open(4) | null |
document.close() | undefined |
document.write() | undefined |
document.writeln() | undefined |
document.querySelector() | null |
document.querySelectorAll() | [object StaticNodeList] |
document.readyState | loading |
document.referrer | |
document.removeEventListener() | no such function |
document.scripts | [object HTMLCollection] |
document.title | |
document.URL | http://www.this-page-intentionally-left-blank.org/ |
node.appendChild() | [object HTMLParagraphElement] |
node.addEventListener() | no such function |
element.childNodes | [object NodeList] |
element.clientHeight | 0 |
element.clientWidth | 0 |
element.clientTop | 0 |
element.clientLeft | 0 |
node.cloneNode(true) | [object HTMLDivElement] |
element.focus() | undefined |
element.getAttribute() | null |
element.getElementsByClassName() | no such function |
element.getElementsByTagName() | [object HTMLCollection] |
node.getUserData() | no such function |
element.hasAttribute() | no such function |
node.hasChildNodes() | true |
element.insertAdjacentHTML() | undefined |
node.insertBefore() | [object HTMLSpanElement] |
element.innerHTML | <SPAN></SPAN><P></P> |
node.nextSibling | [object HTMLParagraphElement] |
node.nodeName | DIV |
node.normalize() | undefined |
element.offsetHeight | 0 |
element.offsetLeft | 0 |
element.offsetTop | 0 |
element.offsetWidth | 0 |
element.outerHTML | <DIV><SPAN></SPAN><P></P></DIV> |
node.ownerDocument | [object HTMLDocument] |
node.previousSibling | null |
node.parentNode | [object DocumentFragment] |
node.parentElement | null |
element.querySelector() | null |
element.querySelectorAll() | [object StaticNodeList] |
element.readyState | no such property |
element.removeAttribute() | undefined |
node.replaceChild() | [object HTMLParagraphElement] |
node.removeChild() | [object HTMLParagraphElement] |
node.removeEventListener() | no such function |
element.style | [object CSSStyleDeclaration] |
element.setAttribute() | undefined |
node.setUserData() | no such function |
element.scrollHeight | 10 |
element.scrollLeft | 0 |
element.scrollTop | 0 |
element.scrollWidth | 10 |
element.tagName | DIV |
node.textContent | no such property |
attribute.name | testAttribute |
attribute.value | |
attribute.isId | no such property |
history.length | 3 |
history.back() | undefined |
history.forward() | undefined |
history.go(string) | undefined |
history.go(int) | undefined |
location.hash | |
location.host | www.this-page-intentionally-left-blank.org |
location.hostname | www.this-page-intentionally-left-blank.org |
location.href | http://www.this-page-intentionally-left-blank.org/ |
location.origin | no such property |
location.pathname | / |
location.port | |
location.protocol | http: |
location.search | |
location.reload() | exists (call test skipped) |
location.assign() | exists (call test skipped) |
location.replace() | exists (call test skipped) |
navigator.appCodeName | Mozilla |
navigator.appName | Microsoft Internet Explorer |
navigator.appVersion | 4.0 (compatible; MSIE 8.0; Windows NT 6.0) |
navigator.buildID | no such property |
navigator.cookieEnabled | true |
navigator.language | no such property |
navigator.onLine | true |
navigator.platform | Win32 |
navigator.product | no such property |
navigator.systemLanguage | en-us |
navigator.userAgent | Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0) |
screen.availHeight | 768 |
screen.availWidth | 1024 |
screen.colorDepth | 24 |
screen.height | 768 |
screen.pixelDepth | 24 |
screen.width | 1024 |
ajax.abort() | undefined |
ajax.open() | undefined |
ajax.overrideMimeType() | no such function |
ajax.setRequestHeader() | undefined |
ajax.send() | undefined |
ajax.onload |
function () {
}
|
ajax.readyState | 4 |
ajax.response | no such property |
ajax.responseText | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n\n<html lang="en">\n\n<head>\n<title>This Page Intentionally Left Blank</title>\n<meta name="blank" content=";-)">\n<meta name="keywords" content="this page intentionally left blank, blank pages, TPILB-Project, left blank, empty, space, white pages">\n<meta name="description" content="This Page Intentionally Left Blank (according to the recommendations of the TPILB-Project).">\n<link rel="next" href="whythat.html" title="Why this page intentionally left blank?!">\n<link rel="last" href="comments.html" title="Comments">\n<link rev="made" href="http://www.LarsKasper.com">\n<link rel="stylesheet" type="text/css" href="blank.css" title="blank style">\n<link rel="shortcut icon" href="favicon.ico">\n<script language="JavaScript" type="text/javascript">\n<!--\nif (document.images)\n{\ntpilb1 = new Image();\ntpilb1.src = "tpilb.gif";\ntpilb2 = new Image();\ntpilb2.src = "tpilbactive.gif";\n}\nfunction cp(picpos, filename)\n{\nif (document.images)\n{\nmakeitso = eval("document." + picpos + ".src=" + filename + ".src");\nreturn makeitso;\n}\n}\n//-->\n</script>\n</head>\n\n<body>\n\n<h1><a href="whythat.html" onMouseOver="cp('tpilb', 'tpilb2');" onMouseOut="cp('tpilb', 'tpilb1');"><img src="tpilb.gif" name="tpilb" border="0" width="300" height="100" alt="This Page Intentionally Left Blank" title="This Page Intentionally Left Blank—click for more information on this project"></a></h1>\n\n</body>\n\n</html> |
ajax.responseType | no such property |
ajax.responseXML | null |
ajax.status | 200 |
ajax.statusText | OK |
ajax.timeout | 10000 |
ajax.upload | no such property |
ajax.getAllResponseHeaders() | Date: Thu, 13 Nov 2014 18:01:36 GMT
Server: Apache
Last-Modified: Fri, 13 May 2005 13:51:54 GMT
ETag: "c120425a-5cb-3f6fd3572b280"
Accept-Ranges: bytes
Content-Length: 1483
Keep-Alive: timeout=2, max=200
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
|
ajax.getResponseHeader() | Apache |
IE11
Property/Function | Value/Return |
window | [object Window] |
document | [object HTMLDocument] |
history | [object History] |
location | http://www.this-page-intentionally-left-blank.org/ |
navigator | [object Navigator] |
screen | [object Screen] |
XMLHttpRequest | function XMLHttpRequest() {
[native code]
} |
window.closed | false |
window.defaultStatus | no such property |
window.document | [object HTMLDocument] |
window.frames | [object Window] |
window.history | [object History] |
window.innerHeight | 605 |
window.innerWidth | 1256 |
window.length | 0 |
window.location | http://www.this-page-intentionally-left-blank.org/ |
window.name | |
window.navigator | [object Navigator] |
window.opener | null |
window.outerHeight | 668 |
window.outerWidth | 1272 |
window.pageXOffset | 0 |
window.pageYOffset | 0 |
window.parent | [object Window] |
window.screen | [object Screen] |
window.screenLeft | no such property |
window.screenTop | no such property |
window.screenX | no such property |
window.screenY | no such property |
window.self | [object Window] |
window.status | |
window.top | [object Window] |
window.URL | no such property |
window.alert() | undefined |
window.blur() | undefined |
window.confirm() | true |
window.createPopup() | no such function |
window.focus() | undefined |
window.moveBy() | undefined |
window.moveTo() | undefined |
window.open() | [object Window] |
window.close() | undefined |
window.print() | undefined |
window.prompt() | prompt answer |
window.resizeBy() | undefined |
window.resizeTo() | undefined |
window.scrollBy() | undefined |
window.scrollTo() | undefined |
window.setInterval() | 3 |
window.clearInterval() | undefined |
window.setTimeout() | 4 |
window.clearTimeout() | undefined |
window.stop() | no such function |
document.all | no such property |
document.addEventListener() | undefined |
document.activeElement | [object HTMLBodyElement] |
document.adoptNode() | no such function |
document.anchors | [object HTMLCollection] |
document.applets | [object HTMLCollection] |
document.baseURI | no such property |
document.body | [object HTMLBodyElement] |
document.cookie | |
document.cloneNode() | [object HTMLDocument] |
document.createAttribute() | [object Attr] |
document.createComment() | [object Comment] |
document.createDocumentFragment() | [object DocumentFragment] |
document.createElement() | [object HTMLDivElement] |
document.createTextNode() | [object Text] |
document.doctype | [object DocumentType] |
document.documentElement | [object HTMLHtmlElement] |
document.documentURI | no such property |
document.domain | www.this-page-intentionally-left-blank.org |
document.embeds | no such property |
document.forms | [object HTMLCollection] |
document.getElementById() | null |
document.getElementsByClassName() | [object HTMLCollection] |
document.getElementsByName() | [object HTMLCollection] |
document.getElementsByTagName() | [object HTMLCollection] |
document.head | [object HTMLHeadElement] |
document.images | [object HTMLCollection] |
document.implementation | [object DOMImplementation] |
document.importNode() | [object HTMLDivElement] |
document.inputEncoding | UTF-8 |
document.lastModified | 05/13/2005 15:51:54 |
document.links | [object HTMLCollection] |
document.normalize() | undefined |
document.normalizeDocument() | no such function |
document.open(2) | null |
document.open(4) | null |
document.close() | undefined |
document.write() | undefined |
document.writeln() | undefined |
document.querySelector() | null |
document.querySelectorAll() | [object StaticNodeList] |
document.readyState | loading |
document.referrer | |
document.removeEventListener() | undefined |
document.scripts | [object HTMLCollection] |
document.title | |
document.URL | http://www.this-page-intentionally-left-blank.org/ |
node.appendChild() | [object HTMLParagraphElement] |
node.addEventListener() | undefined |
element.childNodes | [object NodeList] |
element.clientHeight | 0 |
element.clientWidth | 0 |
element.clientTop | 0 |
element.clientLeft | 0 |
node.cloneNode(true) | [object HTMLDivElement] |
element.focus() | undefined |
element.getAttribute() | null |
element.getElementsByClassName() | [object HTMLCollection] |
element.getElementsByTagName() | [object HTMLCollection] |
node.getUserData() | no such function |
element.hasAttribute() | false |
node.hasChildNodes() | true |
element.insertAdjacentHTML() | 'JavaException: java.lang.NullPointerException: null' |
node.insertBefore() | [object HTMLSpanElement] |
element.innerHTML | <span></span><p></p> |
node.nextSibling | null |
node.nodeName | DIV |
node.normalize() | undefined |
element.offsetHeight | 0 |
element.offsetLeft | 0 |
element.offsetTop | 0 |
element.offsetWidth | 0 |
element.outerHTML | <div><span></span><p></p></div> |
node.ownerDocument | [object HTMLDocument] |
node.previousSibling | null |
node.parentNode | null |
node.parentElement | null |
element.querySelector() | null |
element.querySelectorAll() | [object StaticNodeList] |
element.readyState | no such property |
element.removeAttribute() | undefined |
node.replaceChild() | [object HTMLParagraphElement] |
node.removeChild() | [object HTMLParagraphElement] |
node.removeEventListener() | undefined |
element.style | [object CSSStyleDeclaration] |
element.setAttribute() | undefined |
node.setUserData() | no such function |
element.scrollHeight | 10 |
element.scrollLeft | 0 |
element.scrollTop | 0 |
element.scrollWidth | 10 |
element.tagName | DIV |
node.textContent | |
attribute.name | testAttribute |
attribute.value | |
attribute.isId | no such property |
history.length | 3 |
history.back() | undefined |
history.forward() | undefined |
history.go(string) | undefined |
history.go(int) | undefined |
location.hash | |
location.host | www.this-page-intentionally-left-blank.org |
location.hostname | www.this-page-intentionally-left-blank.org |
location.href | http://www.this-page-intentionally-left-blank.org/ |
location.origin | no such property |
location.pathname | / |
location.port | |
location.protocol | http: |
location.search | |
location.reload() | exists (call test skipped) |
location.assign() | exists (call test skipped) |
location.replace() | exists (call test skipped) |
navigator.appCodeName | Mozilla |
navigator.appName | Netscape |
navigator.appVersion | 5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko |
navigator.buildID | no such property |
navigator.cookieEnabled | true |
navigator.language | en-US |
navigator.onLine | true |
navigator.platform | Win32 |
navigator.product | Gecko |
navigator.systemLanguage | en-us |
navigator.userAgent | Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko |
screen.availHeight | 768 |
screen.availWidth | 1024 |
screen.colorDepth | 24 |
screen.height | 768 |
screen.pixelDepth | 24 |
screen.width | 1024 |
ajax.abort() | undefined |
ajax.open() | undefined |
ajax.overrideMimeType() | no such function |
ajax.setRequestHeader() | undefined |
ajax.send() | undefined |
ajax.onload |
function () {
}
|
ajax.readyState | 4 |
ajax.response | no such property |
ajax.responseText | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n\n<html lang="en">\n\n<head>\n<title>This Page Intentionally Left Blank</title>\n<meta name="blank" content=";-)">\n<meta name="keywords" content="this page intentionally left blank, blank pages, TPILB-Project, left blank, empty, space, white pages">\n<meta name="description" content="This Page Intentionally Left Blank (according to the recommendations of the TPILB-Project).">\n<link rel="next" href="whythat.html" title="Why this page intentionally left blank?!">\n<link rel="last" href="comments.html" title="Comments">\n<link rev="made" href="http://www.LarsKasper.com">\n<link rel="stylesheet" type="text/css" href="blank.css" title="blank style">\n<link rel="shortcut icon" href="favicon.ico">\n<script language="JavaScript" type="text/javascript">\n<!--\nif (document.images)\n{\ntpilb1 = new Image();\ntpilb1.src = "tpilb.gif";\ntpilb2 = new Image();\ntpilb2.src = "tpilbactive.gif";\n}\nfunction cp(picpos, filename)\n{\nif (document.images)\n{\nmakeitso = eval("document." + picpos + ".src=" + filename + ".src");\nreturn makeitso;\n}\n}\n//-->\n</script>\n</head>\n\n<body>\n\n<h1><a href="whythat.html" onMouseOver="cp('tpilb', 'tpilb2');" onMouseOut="cp('tpilb', 'tpilb1');"><img src="tpilb.gif" name="tpilb" border="0" width="300" height="100" alt="This Page Intentionally Left Blank" title="This Page Intentionally Left Blank—click for more information on this project"></a></h1>\n\n</body>\n\n</html> |
ajax.responseType | no such property |
ajax.responseXML | null |
ajax.status | 200 |
ajax.statusText | OK |
ajax.timeout | 10000 |
ajax.upload | no such property |
ajax.getAllResponseHeaders() | Date: Thu, 13 Nov 2014 18:01:39 GMT
Server: Apache
Last-Modified: Fri, 13 May 2005 13:51:54 GMT
ETag: "c120425a-5cb-3f6fd3572b280"
Accept-Ranges: bytes
Content-Length: 1483
Keep-Alive: timeout=2, max=200
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
|
ajax.getResponseHeader() | Apache |
Chrome
Property/Function | Value/Return |
window | [object Window] |
document | [object HTMLDocument] |
history | [object History] |
location | http://www.this-page-intentionally-left-blank.org/ |
navigator | [object Navigator] |
screen | [object Screen] |
XMLHttpRequest | function XMLHttpRequest() {
[native code]
} |
window.closed | false |
window.defaultStatus | no such property |
window.document | [object HTMLDocument] |
window.frames | [object Window] |
window.history | [object History] |
window.innerHeight | 605 |
window.innerWidth | 1256 |
window.length | 0 |
window.location | http://www.this-page-intentionally-left-blank.org/ |
window.name | |
window.navigator | [object Navigator] |
window.opener | null |
window.outerHeight | 720 |
window.outerWidth | 1270 |
window.pageXOffset | no such property |
window.pageYOffset | no such property |
window.parent | [object Window] |
window.screen | [object Screen] |
window.screenLeft | no such property |
window.screenTop | no such property |
window.screenX | no such property |
window.screenY | no such property |
window.self | [object Window] |
window.status | |
window.top | [object Window] |
window.URL | no such property |
window.alert() | undefined |
window.blur() | undefined |
window.confirm() | true |
window.createPopup() | no such function |
window.focus() | undefined |
window.moveBy() | undefined |
window.moveTo() | undefined |
window.open() | [object Window] |
window.close() | undefined |
window.print() | undefined |
window.prompt() | prompt answer |
window.resizeBy() | undefined |
window.resizeTo() | undefined |
window.scrollBy() | undefined |
window.scrollTo() | undefined |
window.setInterval() | 5 |
window.clearInterval() | undefined |
window.setTimeout() | 6 |
window.clearTimeout() | undefined |
window.stop() | undefined |
document.all | no such property |
document.addEventListener() | undefined |
document.activeElement | [object HTMLBodyElement] |
document.adoptNode() | no such function |
document.anchors | [object HTMLCollection] |
document.applets | [object HTMLCollection] |
document.baseURI | no such property |
document.body | [object HTMLBodyElement] |
document.cookie | |
document.cloneNode() | [object HTMLDocument] |
document.createAttribute() | [object Attr] |
document.createComment() | [object Comment] |
document.createDocumentFragment() | [object DocumentFragment] |
document.createElement() | [object HTMLDivElement] |
document.createTextNode() | [object Text] |
document.doctype | [object DocumentType] |
document.documentElement | [object HTMLHtmlElement] |
document.documentURI | no such property |
document.domain | www.this-page-intentionally-left-blank.org |
document.embeds | no such property |
document.forms | [object HTMLCollection] |
document.getElementById() | null |
document.getElementsByClassName() | no such function |
document.getElementsByName() | [object HTMLCollection] |
document.getElementsByTagName() | [object HTMLCollection] |
document.head | no such property |
document.images | [object HTMLCollection] |
document.implementation | [object DOMImplementation] |
document.importNode() | [object HTMLDivElement] |
document.inputEncoding | UTF-8 |
document.lastModified | 05/13/2005 15:51:54 |
document.links | [object HTMLCollection] |
document.normalize() | undefined |
document.normalizeDocument() | no such function |
document.open(2) | null |
document.open(4) | null |
document.close() | undefined |
document.write() | undefined |
document.writeln() | undefined |
document.querySelector() | null |
document.querySelectorAll() | [object StaticNodeList] |
document.readyState | complete |
document.referrer | |
document.removeEventListener() | undefined |
document.scripts | [object HTMLCollection] |
document.title | This Page Intentionally Left Blank |
document.URL | http://www.this-page-intentionally-left-blank.org/ |
node.appendChild() | [object HTMLParagraphElement] |
node.addEventListener() | undefined |
element.childNodes | [object NodeList] |
element.clientHeight | 0 |
element.clientWidth | 0 |
element.clientTop | no such property |
element.clientLeft | no such property |
node.cloneNode(true) | [object HTMLDivElement] |
element.focus() | undefined |
element.getAttribute() | null |
element.getElementsByClassName() | [object HTMLCollection] |
element.getElementsByTagName() | [object HTMLCollection] |
node.getUserData() | no such function |
element.hasAttribute() | false |
node.hasChildNodes() | true |
element.insertAdjacentHTML() | 'JavaException: java.lang.NullPointerException: null' |
node.insertBefore() | [object HTMLSpanElement] |
element.innerHTML | <span></span><p></p> |
node.nextSibling | null |
node.nodeName | DIV |
node.normalize() | undefined |
element.offsetHeight | 0 |
element.offsetLeft | 0 |
element.offsetTop | 0 |
element.offsetWidth | 0 |
element.outerHTML | <div><span></span><p></p></div> |
node.ownerDocument | [object HTMLDocument] |
node.previousSibling | null |
node.parentNode | null |
node.parentElement | null |
element.querySelector() | null |
element.querySelectorAll() | [object StaticNodeList] |
element.readyState | no such property |
element.removeAttribute() | undefined |
node.replaceChild() | [object HTMLParagraphElement] |
node.removeChild() | [object HTMLParagraphElement] |
node.removeEventListener() | undefined |
element.style | [object CSSStyleDeclaration] |
element.setAttribute() | undefined |
node.setUserData() | no such function |
element.scrollHeight | 10 |
element.scrollLeft | 0 |
element.scrollTop | 0 |
element.scrollWidth | 10 |
element.tagName | DIV |
node.textContent | |
attribute.name | testAttribute |
attribute.value | |
attribute.isId | no such property |
history.length | 1 |
history.back() | undefined |
history.forward() | undefined |
history.go(string) | undefined |
history.go(int) | undefined |
location.hash | |
location.host | www.this-page-intentionally-left-blank.org |
location.hostname | www.this-page-intentionally-left-blank.org |
location.href | http://www.this-page-intentionally-left-blank.org/ |
location.origin | no such property |
location.pathname | / |
location.port | |
location.protocol | http: |
location.search | |
location.reload() | exists (call test skipped) |
location.assign() | exists (call test skipped) |
location.replace() | exists (call test skipped) |
navigator.appCodeName | Mozilla |
navigator.appName | Netscape |
navigator.appVersion | 5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 |
navigator.buildID | no such property |
navigator.cookieEnabled | true |
navigator.language | en-US |
navigator.onLine | true |
navigator.platform | MacIntel |
navigator.product | Gecko |
navigator.systemLanguage | no such property |
navigator.userAgent | Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 |
screen.availHeight | 768 |
screen.availWidth | 1024 |
screen.colorDepth | 24 |
screen.height | 768 |
screen.pixelDepth | 24 |
screen.width | 1024 |
ajax.abort() | undefined |
ajax.open() | undefined |
ajax.overrideMimeType() | undefined |
ajax.setRequestHeader() | undefined |
ajax.send() | undefined |
ajax.onload |
function () {
}
|
ajax.readyState | 4 |
ajax.response | no such property |
ajax.responseText | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n\n<html lang="en">\n\n<head>\n<title>This Page Intentionally Left Blank</title>\n<meta name="blank" content=";-)">\n<meta name="keywords" content="this page intentionally left blank, blank pages, TPILB-Project, left blank, empty, space, white pages">\n<meta name="description" content="This Page Intentionally Left Blank (according to the recommendations of the TPILB-Project).">\n<link rel="next" href="whythat.html" title="Why this page intentionally left blank?!">\n<link rel="last" href="comments.html" title="Comments">\n<link rev="made" href="http://www.LarsKasper.com">\n<link rel="stylesheet" type="text/css" href="blank.css" title="blank style">\n<link rel="shortcut icon" href="favicon.ico">\n<script language="JavaScript" type="text/javascript">\n<!--\nif (document.images)\n{\ntpilb1 = new Image();\ntpilb1.src = "tpilb.gif";\ntpilb2 = new Image();\ntpilb2.src = "tpilbactive.gif";\n}\nfunction cp(picpos, filename)\n{\nif (document.images)\n{\nmakeitso = eval("document." + picpos + ".src=" + filename + ".src");\nreturn makeitso;\n}\n}\n//-->\n</script>\n</head>\n\n<body>\n\n<h1><a href="whythat.html" onMouseOver="cp('tpilb', 'tpilb2');" onMouseOut="cp('tpilb', 'tpilb1');"><img src="tpilb.gif" name="tpilb" border="0" width="300" height="100" alt="This Page Intentionally Left Blank" title="This Page Intentionally Left Blank—click for more information on this project"></a></h1>\n\n</body>\n\n</html> |
ajax.responseType | no such property |
ajax.responseXML | [object XMLDocument] |
ajax.status | 200 |
ajax.statusText | OK |
ajax.timeout | 10000 |
ajax.upload | no such property |
ajax.getAllResponseHeaders() | Date: Thu, 13 Nov 2014 18:01:41 GMT
Server: Apache
Last-Modified: Fri, 13 May 2005 13:51:54 GMT
ETag: "c120425a-5cb-3f6fd3572b280"
Accept-Ranges: bytes
Content-Length: 1483
Keep-Alive: timeout=2, max=200
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
|
ajax.getResponseHeader() | Apache |
FF24
Property/Function | Value/Return |
window | [object Window] |
document | [object HTMLDocument] |
history | [object History] |
location | http://www.this-page-intentionally-left-blank.org/ |
navigator | [object Navigator] |
screen | [object Screen] |
XMLHttpRequest | function XMLHttpRequest() {
[native code]
} |
window.closed | false |
window.defaultStatus | no such property |
window.document | [object HTMLDocument] |
window.frames | [object Window] |
window.history | [object History] |
window.innerHeight | 605 |
window.innerWidth | 1256 |
window.length | 0 |
window.location | http://www.this-page-intentionally-left-blank.org/ |
window.name | |
window.navigator | [object Navigator] |
window.opener | null |
window.outerHeight | 720 |
window.outerWidth | 1270 |
window.pageXOffset | 0 |
window.pageYOffset | 0 |
window.parent | [object Window] |
window.screen | [object Screen] |
window.screenLeft | no such property |
window.screenTop | no such property |
window.screenX | no such property |
window.screenY | no such property |
window.self | [object Window] |
window.status | |
window.top | [object Window] |
window.URL | no such property |
window.alert() | undefined |
window.blur() | undefined |
window.confirm() | true |
window.createPopup() | no such function |
window.focus() | undefined |
window.moveBy() | undefined |
window.moveTo() | undefined |
window.open() | [object Window] |
window.close() | undefined |
window.print() | undefined |
window.prompt() | prompt answer |
window.resizeBy() | undefined |
window.resizeTo() | undefined |
window.scrollBy() | undefined |
window.scrollTo() | undefined |
window.setInterval() | 7 |
window.clearInterval() | undefined |
window.setTimeout() | 8 |
window.clearTimeout() | undefined |
window.stop() | undefined |
document.all | no such property |
document.addEventListener() | undefined |
document.activeElement | [object HTMLBodyElement] |
document.adoptNode() | no such function |
document.anchors | [object HTMLCollection] |
document.applets | [object HTMLCollection] |
document.baseURI | no such property |
document.body | [object HTMLBodyElement] |
document.cookie | |
document.cloneNode() | [object HTMLDocument] |
document.createAttribute() | [object Attr] |
document.createComment() | [object Comment] |
document.createDocumentFragment() | [object DocumentFragment] |
document.createElement() | [object HTMLDivElement] |
document.createTextNode() | [object Text] |
document.doctype | [object DocumentType] |
document.documentElement | [object HTMLHtmlElement] |
document.documentURI | no such property |
document.domain | www.this-page-intentionally-left-blank.org |
document.embeds | no such property |
document.forms | [object HTMLCollection] |
document.getElementById() | null |
document.getElementsByClassName() | [object HTMLCollection] |
document.getElementsByName() | [object HTMLCollection] |
document.getElementsByTagName() | [object HTMLCollection] |
document.head | [object HTMLHeadElement] |
document.images | [object HTMLCollection] |
document.implementation | [object DOMImplementation] |
document.importNode() | [object HTMLDivElement] |
document.inputEncoding | UTF-8 |
document.lastModified | 05/13/2005 15:51:54 |
document.links | [object HTMLCollection] |
document.normalize() | undefined |
document.normalizeDocument() | no such function |
document.open(2) | null |
document.open(4) | null |
document.close() | undefined |
document.write() | undefined |
document.writeln() | undefined |
document.querySelector() | null |
document.querySelectorAll() | [object StaticNodeList] |
document.readyState | complete |
document.referrer | |
document.removeEventListener() | undefined |
document.scripts | [object HTMLCollection] |
document.title | This Page Intentionally Left Blank |
document.URL | http://www.this-page-intentionally-left-blank.org/ |
node.appendChild() | [object HTMLParagraphElement] |
node.addEventListener() | undefined |
element.childNodes | [object NodeList] |
element.clientHeight | 0 |
element.clientWidth | 0 |
element.clientTop | 0 |
element.clientLeft | 0 |
node.cloneNode(true) | [object HTMLDivElement] |
element.focus() | undefined |
element.getAttribute() | null |
element.getElementsByClassName() | [object HTMLCollection] |
element.getElementsByTagName() | [object HTMLCollection] |
node.getUserData() | no such function |
element.hasAttribute() | false |
node.hasChildNodes() | true |
element.insertAdjacentHTML() | 'JavaException: java.lang.NullPointerException: null' |
node.insertBefore() | [object HTMLSpanElement] |
element.innerHTML | <span></span><p></p> |
node.nextSibling | null |
node.nodeName | DIV |
node.normalize() | undefined |
element.offsetHeight | 0 |
element.offsetLeft | 0 |
element.offsetTop | 0 |
element.offsetWidth | 0 |
element.outerHTML | <div><span></span><p></p></div> |
node.ownerDocument | [object HTMLDocument] |
node.previousSibling | null |
node.parentNode | null |
node.parentElement | null |
element.querySelector() | null |
element.querySelectorAll() | [object StaticNodeList] |
element.readyState | no such property |
element.removeAttribute() | undefined |
node.replaceChild() | [object HTMLParagraphElement] |
node.removeChild() | [object HTMLParagraphElement] |
node.removeEventListener() | undefined |
element.style | [object CSSStyleDeclaration] |
element.setAttribute() | undefined |
node.setUserData() | no such function |
element.scrollHeight | 10 |
element.scrollLeft | 0 |
element.scrollTop | 0 |
element.scrollWidth | 10 |
element.tagName | DIV |
node.textContent | |
attribute.name | testAttribute |
attribute.value | |
attribute.isId | no such property |
history.length | 1 |
history.back() | undefined |
history.forward() | undefined |
history.go(string) | undefined |
history.go(int) | undefined |
location.hash | |
location.host | www.this-page-intentionally-left-blank.org |
location.hostname | www.this-page-intentionally-left-blank.org |
location.href | http://www.this-page-intentionally-left-blank.org/ |
location.origin | no such property |
location.pathname | / |
location.port | |
location.protocol | http: |
location.search | |
location.reload() | exists (call test skipped) |
location.assign() | exists (call test skipped) |
location.replace() | exists (call test skipped) |
navigator.appCodeName | Mozilla |
navigator.appName | Netscape |
navigator.appVersion | 5.0 (Windows) |
navigator.buildID | 20140609182057 |
navigator.cookieEnabled | true |
navigator.language | en-US |
navigator.onLine | true |
navigator.platform | Win32 |
navigator.product | Gecko |
navigator.systemLanguage | no such property |
navigator.userAgent | Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0 |
screen.availHeight | 768 |
screen.availWidth | 1024 |
screen.colorDepth | 24 |
screen.height | 768 |
screen.pixelDepth | 24 |
screen.width | 1024 |
ajax.abort() | undefined |
ajax.open() | undefined |
ajax.overrideMimeType() | undefined |
ajax.setRequestHeader() | undefined |
ajax.send() | undefined |
ajax.onload |
function () {
}
|
ajax.readyState | 4 |
ajax.response | no such property |
ajax.responseText | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n\n<html lang="en">\n\n<head>\n<title>This Page Intentionally Left Blank</title>\n<meta name="blank" content=";-)">\n<meta name="keywords" content="this page intentionally left blank, blank pages, TPILB-Project, left blank, empty, space, white pages">\n<meta name="description" content="This Page Intentionally Left Blank (according to the recommendations of the TPILB-Project).">\n<link rel="next" href="whythat.html" title="Why this page intentionally left blank?!">\n<link rel="last" href="comments.html" title="Comments">\n<link rev="made" href="http://www.LarsKasper.com">\n<link rel="stylesheet" type="text/css" href="blank.css" title="blank style">\n<link rel="shortcut icon" href="favicon.ico">\n<script language="JavaScript" type="text/javascript">\n<!--\nif (document.images)\n{\ntpilb1 = new Image();\ntpilb1.src = "tpilb.gif";\ntpilb2 = new Image();\ntpilb2.src = "tpilbactive.gif";\n}\nfunction cp(picpos, filename)\n{\nif (document.images)\n{\nmakeitso = eval("document." + picpos + ".src=" + filename + ".src");\nreturn makeitso;\n}\n}\n//-->\n</script>\n</head>\n\n<body>\n\n<h1><a href="whythat.html" onMouseOver="cp('tpilb', 'tpilb2');" onMouseOut="cp('tpilb', 'tpilb1');"><img src="tpilb.gif" name="tpilb" border="0" width="300" height="100" alt="This Page Intentionally Left Blank" title="This Page Intentionally Left Blank—click for more information on this project"></a></h1>\n\n</body>\n\n</html> |
ajax.responseType | no such property |
ajax.responseXML | [object XMLDocument] |
ajax.status | 200 |
ajax.statusText | OK |
ajax.timeout | 10000 |
ajax.upload | no such property |
ajax.getAllResponseHeaders() | Date: Thu, 13 Nov 2014 18:01:42 GMT
Server: Apache
Last-Modified: Fri, 13 May 2005 13:51:54 GMT
ETag: "c120425a-5cb-3f6fd3572b280"
Accept-Ranges: bytes
Content-Length: 1483
Keep-Alive: timeout=2, max=200
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
|
ajax.getResponseHeader() | Apache |
FF31
Property/Function | Value/Return |
window | [object Window] |
document | [object HTMLDocument] |
history | [object History] |
location | http://www.this-page-intentionally-left-blank.org/ |
navigator | [object Navigator] |
screen | [object Screen] |
XMLHttpRequest | function XMLHttpRequest() {
[native code]
} |
window.closed | false |
window.defaultStatus | no such property |
window.document | [object HTMLDocument] |
window.frames | [object Window] |
window.history | [object History] |
window.innerHeight | 605 |
window.innerWidth | 1256 |
window.length | 0 |
window.location | http://www.this-page-intentionally-left-blank.org/ |
window.name | |
window.navigator | [object Navigator] |
window.opener | null |
window.outerHeight | 699 |
window.outerWidth | 1270 |
window.pageXOffset | 0 |
window.pageYOffset | 0 |
window.parent | [object Window] |
window.screen | [object Screen] |
window.screenLeft | no such property |
window.screenTop | no such property |
window.screenX | no such property |
window.screenY | no such property |
window.self | [object Window] |
window.status | |
window.top | [object Window] |
window.URL | no such property |
window.alert() | undefined |
window.blur() | undefined |
window.confirm() | true |
window.createPopup() | no such function |
window.focus() | undefined |
window.moveBy() | undefined |
window.moveTo() | undefined |
window.open() | [object Window] |
window.close() | undefined |
window.print() | undefined |
window.prompt() | prompt answer |
window.resizeBy() | undefined |
window.resizeTo() | undefined |
window.scrollBy() | undefined |
window.scrollTo() | undefined |
window.setInterval() | 9 |
window.clearInterval() | undefined |
window.setTimeout() | 10 |
window.clearTimeout() | undefined |
window.stop() | undefined |
document.all | no such property |
document.addEventListener() | undefined |
document.activeElement | [object HTMLBodyElement] |
document.adoptNode() | no such function |
document.anchors | [object HTMLCollection] |
document.applets | [object HTMLCollection] |
document.baseURI | no such property |
document.body | [object HTMLBodyElement] |
document.cookie | |
document.cloneNode() | [object HTMLDocument] |
document.createAttribute() | [object Attr] |
document.createComment() | [object Comment] |
document.createDocumentFragment() | [object DocumentFragment] |
document.createElement() | [object HTMLDivElement] |
document.createTextNode() | [object Text] |
document.doctype | [object DocumentType] |
document.documentElement | [object HTMLHtmlElement] |
document.documentURI | no such property |
document.domain | www.this-page-intentionally-left-blank.org |
document.embeds | no such property |
document.forms | [object HTMLCollection] |
document.getElementById() | null |
document.getElementsByClassName() | [object HTMLCollection] |
document.getElementsByName() | [object HTMLCollection] |
document.getElementsByTagName() | [object HTMLCollection] |
document.head | [object HTMLHeadElement] |
document.images | [object HTMLCollection] |
document.implementation | [object DOMImplementation] |
document.importNode() | [object HTMLDivElement] |
document.inputEncoding | UTF-8 |
document.lastModified | 05/13/2005 15:51:54 |
document.links | [object HTMLCollection] |
document.normalize() | undefined |
document.normalizeDocument() | no such function |
document.open(2) | null |
document.open(4) | null |
document.close() | undefined |
document.write() | undefined |
document.writeln() | undefined |
document.querySelector() | null |
document.querySelectorAll() | [object StaticNodeList] |
document.readyState | complete |
document.referrer | |
document.removeEventListener() | undefined |
document.scripts | [object HTMLCollection] |
document.title | This Page Intentionally Left Blank |
document.URL | http://www.this-page-intentionally-left-blank.org/ |
node.appendChild() | [object HTMLParagraphElement] |
node.addEventListener() | undefined |
element.childNodes | [object NodeList] |
element.clientHeight | 0 |
element.clientWidth | 0 |
element.clientTop | 0 |
element.clientLeft | 0 |
node.cloneNode(true) | [object HTMLDivElement] |
element.focus() | undefined |
element.getAttribute() | null |
element.getElementsByClassName() | [object HTMLCollection] |
element.getElementsByTagName() | [object HTMLCollection] |
node.getUserData() | no such function |
element.hasAttribute() | false |
node.hasChildNodes() | true |
element.insertAdjacentHTML() | 'JavaException: java.lang.NullPointerException: null' |
node.insertBefore() | [object HTMLSpanElement] |
element.innerHTML | <span></span><p></p> |
node.nextSibling | null |
node.nodeName | DIV |
node.normalize() | undefined |
element.offsetHeight | 0 |
element.offsetLeft | 0 |
element.offsetTop | 0 |
element.offsetWidth | 0 |
element.outerHTML | <div><span></span><p></p></div> |
node.ownerDocument | [object HTMLDocument] |
node.previousSibling | null |
node.parentNode | null |
node.parentElement | null |
element.querySelector() | null |
element.querySelectorAll() | [object StaticNodeList] |
element.readyState | no such property |
element.removeAttribute() | undefined |
node.replaceChild() | [object HTMLParagraphElement] |
node.removeChild() | [object HTMLParagraphElement] |
node.removeEventListener() | undefined |
element.style | [object CSSStyleDeclaration] |
element.setAttribute() | undefined |
node.setUserData() | no such function |
element.scrollHeight | 10 |
element.scrollLeft | 0 |
element.scrollTop | 0 |
element.scrollWidth | 10 |
element.tagName | DIV |
node.textContent | |
attribute.name | testAttribute |
attribute.value | |
attribute.isId | no such property |
history.length | 1 |
history.back() | undefined |
history.forward() | undefined |
history.go(string) | undefined |
history.go(int) | undefined |
location.hash | |
location.host | www.this-page-intentionally-left-blank.org |
location.hostname | www.this-page-intentionally-left-blank.org |
location.href | http://www.this-page-intentionally-left-blank.org/ |
location.origin | no such property |
location.pathname | / |
location.port | |
location.protocol | http: |
location.search | |
location.reload() | exists (call test skipped) |
location.assign() | exists (call test skipped) |
location.replace() | exists (call test skipped) |
navigator.appCodeName | Mozilla |
navigator.appName | Netscape |
navigator.appVersion | 5.0 (Windows) |
navigator.buildID | 20140717132905 |
navigator.cookieEnabled | true |
navigator.language | en-US |
navigator.onLine | true |
navigator.platform | Win32 |
navigator.product | Gecko |
navigator.systemLanguage | no such property |
navigator.userAgent | Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0 |
screen.availHeight | 768 |
screen.availWidth | 1024 |
screen.colorDepth | 24 |
screen.height | 768 |
screen.pixelDepth | 24 |
screen.width | 1024 |
ajax.abort() | undefined |
ajax.open() | undefined |
ajax.overrideMimeType() | undefined |
ajax.setRequestHeader() | undefined |
ajax.send() | undefined |
ajax.onload |
function () {
}
|
ajax.readyState | 4 |
ajax.response | no such property |
ajax.responseText | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n\n<html lang="en">\n\n<head>\n<title>This Page Intentionally Left Blank</title>\n<meta name="blank" content=";-)">\n<meta name="keywords" content="this page intentionally left blank, blank pages, TPILB-Project, left blank, empty, space, white pages">\n<meta name="description" content="This Page Intentionally Left Blank (according to the recommendations of the TPILB-Project).">\n<link rel="next" href="whythat.html" title="Why this page intentionally left blank?!">\n<link rel="last" href="comments.html" title="Comments">\n<link rev="made" href="http://www.LarsKasper.com">\n<link rel="stylesheet" type="text/css" href="blank.css" title="blank style">\n<link rel="shortcut icon" href="favicon.ico">\n<script language="JavaScript" type="text/javascript">\n<!--\nif (document.images)\n{\ntpilb1 = new Image();\ntpilb1.src = "tpilb.gif";\ntpilb2 = new Image();\ntpilb2.src = "tpilbactive.gif";\n}\nfunction cp(picpos, filename)\n{\nif (document.images)\n{\nmakeitso = eval("document." + picpos + ".src=" + filename + ".src");\nreturn makeitso;\n}\n}\n//-->\n</script>\n</head>\n\n<body>\n\n<h1><a href="whythat.html" onMouseOver="cp('tpilb', 'tpilb2');" onMouseOut="cp('tpilb', 'tpilb1');"><img src="tpilb.gif" name="tpilb" border="0" width="300" height="100" alt="This Page Intentionally Left Blank" title="This Page Intentionally Left Blank—click for more information on this project"></a></h1>\n\n</body>\n\n</html> |
ajax.responseType | no such property |
ajax.responseXML | [object XMLDocument] |
ajax.status | 200 |
ajax.statusText | OK |
ajax.timeout | 10000 |
ajax.upload | no such property |
ajax.getAllResponseHeaders() | Date: Thu, 13 Nov 2014 18:01:43 GMT
Server: Apache
Last-Modified: Fri, 13 May 2005 13:51:54 GMT
ETag: "c120425a-5cb-3f6fd3572b280"
Accept-Ranges: bytes
Content-Length: 1483
Keep-Alive: timeout=2, max=200
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
|
ajax.getResponseHeader() | Apache |
JavaScript Test Code
"use strict";
/**
* @author Fritz Ritzberger Sep 24, 2014
*/
var assertProperty = function(value, name) {
if (typeof value === "undefined")
console.log("ERROR: "+name+", no such property");
else
console.log("SUCCESS: "+name+", value = "+value);
}
var assertFunction = function(name, context, functionToCall, parameters) {
if ( ! functionToCall ) {
console.log("ERROR: "+name+", no such function");
}
else {
try {
var returnValue = functionToCall.apply(context, parameters);
console.log("SUCCESS: "+name+", return = "+returnValue);
}
catch (error) {
console.log("ERROR: "+name+", '"+error+"'");
}
}
}
var assertFunctionExists = function(name, context, functionToCall, parameters) {
if ( ! functionToCall ) {
console.log("ERROR: "+name+", no such function");
}
else {
console.log("SUCCESS: "+name+", function exists (call test skipped)");
}
}
assertProperty(window, "window");
assertProperty(document, "document");
assertProperty(history, "history");
assertProperty(location, "location");
assertProperty(navigator, "navigator");
assertProperty(screen, "screen");
assertProperty(XMLHttpRequest, "XMLHttpRequest");
assertProperty(window.closed, "window.closed");
assertProperty(window.defaultStatus, "window.defaultStatus");
assertProperty(window.document, "window.document");
assertProperty(window.frames, "window.frames");
assertProperty(window.history, "window.history");
assertProperty(window.innerHeight, "window.innerHeight");
assertProperty(window.innerWidth, "window.innerWidth");
assertProperty(window.length, "window.length");
assertProperty(window.location, "window.location");
assertProperty(window.name, "window.name");
assertProperty(window.navigator, "window.navigator");
assertProperty(window.opener, "window.opener");
assertProperty(window.outerHeight, "window.outerHeight");
assertProperty(window.outerWidth, "window.outerWidth");
assertProperty(window.pageXOffset, "window.pageXOffset");
assertProperty(window.pageYOffset, "window.pageYOffset");
assertProperty(window.parent, "window.parent");
assertProperty(window.screen, "window.screen");
assertProperty(window.screenLeft, "window.screenLeft");
assertProperty(window.screenTop, "window.screenTop");
assertProperty(window.screenX, "window.screenX");
assertProperty(window.screenY, "window.screenY");
assertProperty(window.self, "window.self");
assertProperty(window.status, "window.status");
assertProperty(window.top, "window.top");
assertProperty(window.URL, "window.URL");
assertFunction("window.alert()", window, window.alert, [ "alert" ]);
assertFunction("window.blur()", window, window.blur);
assertFunction("window.confirm()", window, window.confirm, [ "confirm" ]);
assertFunction("window.createPopup()", window, window.createPopup);
assertFunction("window.focus()", window, window.focus);
assertFunction("window.moveBy()", window, window.moveBy, [ 0, 0 ]);
assertFunction("window.moveTo()", window, window.moveTo, [ 0, 0 ]);
assertFunction("window.open()", window, window.open, [ "http://www.example.com", "example", "", false ]); // HtmlUnit needs 4 params
assertFunction("window.close()", window, window.close);
assertFunction("window.print()", window, window.print);
assertFunction("window.prompt()", window, window.prompt, [ "prompt" ]);
assertFunction("window.resizeBy()", window, window.resizeBy, [ 0, 0 ]);
assertFunction("window.resizeTo()", window, window.resizeTo, [ 0, 0 ]);
assertFunction("window.scrollBy()", window, window.scrollBy, [ 0, 0 ]);
assertFunction("window.scrollTo()", window, window.scrollTo, [ 0, 0 ]);
assertFunction("window.setInterval()", window, window.setInterval, [ function(){}, 1000, "JavaScript" ]);
assertFunction("window.clearInterval()", window, window.clearInterval, [ 0 ]);
assertFunction("window.setTimeout()", window, window.setTimeout, [ function(){}, 1000, "JavaScript" ]);
assertFunction("window.clearTimeout()", window, window.clearTimeout, [ 0 ]);
assertFunction("window.stop()", window, window.stop);
assertProperty(document.all, "document.all");
assertFunction("document.addEventListener()", document, document.addEventListener, [ "eventType", function(event){}, false ]);
assertProperty(document.activeElement, "document.activeElement");
assertFunction("document.adoptNode()", document, document.adoptNode, [ document.createElement("p") ])
assertProperty(document.anchors, "document.anchors");
assertProperty(document.applets, "document.applets");
assertProperty(document.baseURI, "document.baseURI");
assertProperty(document.body, "document.body");
assertProperty(document.cookie, "document.cookie");
assertFunction("document.cloneNode()", document, document.cloneNode, [ document.createElement("p") ]);
assertFunction("document.createAttribute()", document, document.createAttribute, [ "testAttribute" ]);
assertFunction("document.createComment()", document, document.createComment, [ "testComment" ]);
assertFunction("document.createDocumentFragment()", document, document.createDocumentFragment);
assertFunction("document.createElement()", document, document.createElement, [ "div" ]);
assertFunction("document.createTextNode()", document, document.createTextNode, [ "testTextNode" ]);
assertProperty(document.doctype, "document.doctype");
assertProperty(document.documentElement, "document.documentElement");
assertProperty(document.documentURI, "document.documentURI");
assertProperty(document.domain, "document.domain");
assertProperty(document.embeds, "document.embeds");
assertProperty(document.forms, "document.forms");
assertFunction("document.getElementById()", document, document.getElementById, [ "testId" ]);
assertFunction("document.getElementsByClassName()", document, document.getElementsByClassName, [ "testClassname" ]);
assertFunction("document.getElementsByName()", document, document.getElementsByName, [ "div" ]);
assertFunction("document.getElementsByTagName()", document, document.getElementsByTagName, [ "div" ]);
assertProperty(document.head, "document.head");
assertProperty(document.images, "document.images");
assertProperty(document.implementation, "document.implementation");
assertFunction("document.importNode()", document, document.importNode, [ document.createElement("div"), false ]);
assertProperty(document.inputEncoding, "document.inputEncoding");
assertProperty(document.lastModified, "document.lastModified");
assertProperty(document.links, "document.links");
assertFunction("document.normalize()", document, document.normalize);
assertFunction("document.normalizeDocument()", document, document.normalizeDocument);
assertFunction("document.open(2)", document, document.open, [ "http://www.example.com", "replace" ]); // w3schools wants 2 params
assertFunction("document.open(4)", document, document.open, [ "http://www.example.com", "example", "", false ]); // HtmlUnit also takes 4 params
assertFunction("document.close()", document, document.close);
assertFunction("document.write()", document, document.write, [ "Hello World" ]);
assertFunction("document.writeln()", document, document.writeln, [ "Hello Worldln" ]);
assertFunction("document.close()", document, document.close);
assertFunction("document.querySelector()", document, document.querySelector, [ "cssSelector" ]);
assertFunction("document.querySelectorAll()", document, document.querySelectorAll, [ "cssSelector" ]);
assertProperty(document.readyState, "document.readyState");
assertProperty(document.referrer, "document.referrer");
assertFunction("document.removeEventListener()", document, document.removeEventListener, [ "eventType", function(event){}, false ]);
assertProperty(document.scripts, "document.scripts");
assertProperty(document.title, "document.title");
assertProperty(document.URL, "document.URL");
var element = document.createElement("div");
var child = document.createElement("p");
assertFunction("node.appendChild()", element, element.appendChild, [ child ]);
assertFunction("node.addEventListener()", element, element.addEventListener, [ "eventType", function(event){}, false ]);
assertProperty(element.childNodes, "element.childNodes");
assertProperty(element.clientHeight, "element.clientHeight");
assertProperty(element.clientWidth, "element.clientWidth");
assertProperty(element.clientTop, "element.clientTop");
assertProperty(element.clientLeft, "element.clientLeft");
assertFunction("node.cloneNode(true)", element, element.cloneNode, [ true ]);
assertFunction("element.focus()", element, element.focus);
assertFunction("element.getAttribute()", element, element.getAttribute, [ "testAttributeName" ]);
assertFunction("element.getElementsByClassName()", element, element.getElementsByClassName, [ "cssClassName" ]);
assertFunction("element.getElementsByTagName()", element, element.getElementsByTagName, [ "p" ]);
assertFunction("node.getUserData()", element, element.getUserData);
assertFunction("element.hasAttribute()", element, element.hasAttribute, [ "testAttributeName" ]);
assertFunction("node.hasChildNodes()", element, element.hasChildNodes);
assertFunction("element.insertAdjacentHTML()", element, element.insertAdjacentHTML, [ "afterend", "<p>Hi</p>" ]);
assertFunction("node.insertBefore()", element, element.insertBefore, [ document.createElement("span"), child ]);
assertProperty(element.innerHTML, "element.innerHTML");
assertProperty(element.nextSibling, "node.nextSibling");
assertProperty(element.nodeName, "node.nodeName");
assertFunction("node.normalize()", element, element.normalize);
assertProperty(element.offsetHeight, "element.offsetHeight");
assertProperty(element.offsetLeft, "element.offsetLeft");
assertProperty(element.offsetTop, "element.offsetTop");
assertProperty(element.offsetWidth, "element.offsetWidth");
assertProperty(element.outerHTML, "element.outerHTML");
assertProperty(element.ownerDocument, "node.ownerDocument");
assertProperty(element.previousSibling, "node.previousSibling");
assertProperty(element.parentNode, "node.parentNode");
assertProperty(element.parentElement, "node.parentElement");
assertFunction("element.querySelector()", element, element.querySelector, [ "cssSelector" ]);
assertFunction("element.querySelectorAll()", element, element.querySelectorAll, [ "cssSelector" ]);
assertProperty(element.readyState, "element.readyState");
assertFunction("element.removeAttribute()", element, element.removeAttribute, [ "testAttributeName" ]);
var child2 = document.createElement("p");
assertFunction("node.replaceChild()", element, element.replaceChild, [ child2, child ]);
assertFunction("node.removeChild()", element, element.removeChild, [ child2 ]);
assertFunction("node.removeEventListener()", element, element.removeEventListener, [ "eventType", function(event){}, false ]);
assertProperty(element.style, "element.style");
assertFunction("element.setAttribute()", element, element.setAttribute, [ "testAttributeName", "testAttributeValue" ]);
assertFunction("node.setUserData()", element, element.setUserData, [ "userData" ]);
assertProperty(element.scrollHeight, "element.scrollHeight");
assertProperty(element.scrollLeft, "element.scrollLeft");
assertProperty(element.scrollTop, "element.scrollTop");
assertProperty(element.scrollWidth, "element.scrollWidth");
assertProperty(element.tagName, "element.tagName");
assertProperty(element.textContent, "node.textContent");
var attribute = document.createAttribute("testAttribute");
assertProperty(attribute.name, "attribute.name");
assertProperty(attribute.value, "attribute.value");
assertProperty(attribute.isId, "attribute.isId");
assertProperty(history.length, "history.length");
assertFunction("history.back()", history, history.back);
assertFunction("history.forward()", history, history.forward);
assertFunction("history.go(string)", history, history.go, [ "http://www.example.com" ]);
assertFunction("history.go(int)", history, history.go, [ 0 ]);
assertProperty(location.hash, "location.hash");
assertProperty(location.host, "location.host");
assertProperty(location.hostname, "location.hostname");
assertProperty(location.href, "location.href");
assertProperty(location.origin, "location.origin");
assertProperty(location.pathname, "location.pathname");
assertProperty(location.port, "location.port");
assertProperty(location.protocol, "location.protocol");
assertProperty(location.search, "location.search");
assertFunctionExists("location.reload()", location, location.reload, [ false ]); // HtmlUnit crashes with NPE
assertFunctionExists("location.assign()", location, location.assign, [ "http://www.example.com" ]); // HtmlUnit crashes with NPE
assertFunctionExists("location.replace()", location, location.replace, [ "http://www.example.com" ]); // HtmlUnit crashes with NPE
assertProperty(navigator.appCodeName, "navigator.appCodeName");
assertProperty(navigator.appName, "navigator.appName");
assertProperty(navigator.appVersion, "navigator.appVersion");
assertProperty(navigator.buildID, "navigator.buildID");
assertProperty(navigator.cookieEnabled, "navigator.cookieEnabled");
assertProperty(navigator.language, "navigator.language");
assertProperty(navigator.onLine, "navigator.onLine");
assertProperty(navigator.platform, "navigator.platform");
assertProperty(navigator.product, "navigator.product");
assertProperty(navigator.systemLanguage, "navigator.systemLanguage");
assertProperty(navigator.userAgent, "navigator.userAgent");
assertProperty(screen.availHeight, "screen.availHeight");
assertProperty(screen.availWidth, "screen.availWidth");
assertProperty(screen.colorDepth, "screen.colorDepth");
assertProperty(screen.height, "screen.height");
assertProperty(screen.pixelDepth, "screen.pixelDepth");
assertProperty(screen.width, "screen.width");
var ajax = new XMLHttpRequest();
ajax.onload = function() {};
ajax.timeout = 10000;
assertFunction("ajax.abort()", ajax, ajax.abort);
assertFunction("ajax.open()", ajax, ajax.open, [ "GET", "http://www.this-page-intentionally-left-blank.org/", false ]);
assertFunction("ajax.overrideMimeType()", ajax, ajax.overrideMimeType, [ "text/xml" ]);
assertFunction("ajax.setRequestHeader()", ajax, ajax.setRequestHeader, [ "my", "value" ]);
assertFunction("ajax.send()", ajax, ajax.send);
assertProperty(ajax.onload, "ajax.onload");
assertProperty(ajax.readyState, "ajax.readyState");
assertProperty(ajax.response, "ajax.response");
assertProperty(ajax.responseText, "ajax.responseText");
assertProperty(ajax.responseType, "ajax.responseType");
assertProperty(ajax.responseXML, "ajax.responseXML");
assertProperty(ajax.status, "ajax.status");
assertProperty(ajax.statusText, "ajax.statusText");
assertProperty(ajax.timeout, "ajax.timeout");
assertProperty(ajax.upload, "ajax.upload");
assertFunction("ajax.getAllResponseHeaders()", ajax, ajax.getAllResponseHeaders);
assertFunction("ajax.getResponseHeader()", ajax, ajax.getResponseHeader, [ "Server" ]);
© Fritz Ritzberger, 2014