1 This test checks the constants on the XMLHttpRequst object, as well as its prototype and constructor.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Test the constants on the XMLHttpRequest object itself.
7 PASS new XMLHttpRequest().UNSENT is 0
8 PASS new XMLHttpRequest().OPENED is 1
9 PASS new XMLHttpRequest().HEADERS_RECEIVED is 2
10 PASS new XMLHttpRequest().LOADING is 3
11 PASS new XMLHttpRequest().DONE is 4
12 Test the constants on the XMLHttpRequest prototype object.
13 PASS XMLHttpRequest.prototype.UNSENT is 0
14 PASS XMLHttpRequest.prototype.OPENED is 1
15 PASS XMLHttpRequest.prototype.HEADERS_RECEIVED is 2
16 PASS XMLHttpRequest.prototype.LOADING is 3
17 PASS XMLHttpRequest.prototype.DONE is 4
18 Test the constants on the XMLHttpRequest constructor object.
19 PASS XMLHttpRequest.UNSENT is 0
20 PASS XMLHttpRequest.OPENED is 1
21 PASS XMLHttpRequest.HEADERS_RECEIVED is 2
22 PASS XMLHttpRequest.LOADING is 3
23 PASS XMLHttpRequest.DONE is 4
24 PASS successfullyParsed is true