blob: c594ba330ac40fb92ecd227e15b90d8bb520e3a9 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("This test checks the constants on the XMLHttpRequst object, as well as its prototype and constructor.");
debug("Test the constants on the XMLHttpRequest object itself.")
shouldBe("new XMLHttpRequest().UNSENT", "0");
shouldBe("new XMLHttpRequest().OPENED", "1");
shouldBe("new XMLHttpRequest().HEADERS_RECEIVED", "2");
shouldBe("new XMLHttpRequest().LOADING", "3");
shouldBe("new XMLHttpRequest().DONE", "4");
debug("Test the constants on the XMLHttpRequest prototype object.")
shouldBe("XMLHttpRequest.prototype.UNSENT", "0");
shouldBe("XMLHttpRequest.prototype.OPENED", "1");
shouldBe("XMLHttpRequest.prototype.HEADERS_RECEIVED", "2");
shouldBe("XMLHttpRequest.prototype.LOADING", "3");
shouldBe("XMLHttpRequest.prototype.DONE", "4");
debug("Test the constants on the XMLHttpRequest constructor object.")
shouldBe("XMLHttpRequest.UNSENT", "0");
shouldBe("XMLHttpRequest.OPENED", "1");
shouldBe("XMLHttpRequest.HEADERS_RECEIVED", "2");
shouldBe("XMLHttpRequest.LOADING", "3");
shouldBe("XMLHttpRequest.DONE", "4");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>