| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script src="script-tests/XMLHttpRequest-constants.js"></script> | 7 <script> |
| 8 description("This test checks the constants on the XMLHttpRequst object, as well
as its prototype and constructor."); |
| 9 |
| 10 debug("Test the constants on the XMLHttpRequest object itself.") |
| 11 shouldBe("new XMLHttpRequest().UNSENT", "0"); |
| 12 shouldBe("new XMLHttpRequest().OPENED", "1"); |
| 13 shouldBe("new XMLHttpRequest().HEADERS_RECEIVED", "2"); |
| 14 shouldBe("new XMLHttpRequest().LOADING", "3"); |
| 15 shouldBe("new XMLHttpRequest().DONE", "4"); |
| 16 |
| 17 debug("Test the constants on the XMLHttpRequest prototype object.") |
| 18 shouldBe("XMLHttpRequest.prototype.UNSENT", "0"); |
| 19 shouldBe("XMLHttpRequest.prototype.OPENED", "1"); |
| 20 shouldBe("XMLHttpRequest.prototype.HEADERS_RECEIVED", "2"); |
| 21 shouldBe("XMLHttpRequest.prototype.LOADING", "3"); |
| 22 shouldBe("XMLHttpRequest.prototype.DONE", "4"); |
| 23 |
| 24 debug("Test the constants on the XMLHttpRequest constructor object.") |
| 25 shouldBe("XMLHttpRequest.UNSENT", "0"); |
| 26 shouldBe("XMLHttpRequest.OPENED", "1"); |
| 27 shouldBe("XMLHttpRequest.HEADERS_RECEIVED", "2"); |
| 28 shouldBe("XMLHttpRequest.LOADING", "3"); |
| 29 shouldBe("XMLHttpRequest.DONE", "4"); |
| 30 </script> |
| 8 </body> | 31 </body> |
| 9 </html> | 32 </html> |
| OLD | NEW |