You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
356 B
14 lines
356 B
4 years ago
|
var sys = require("util")
|
||
|
, assert = require("assert")
|
||
|
, XMLHttpRequest = require("../lib/XMLHttpRequest").XMLHttpRequest
|
||
|
, xhr = new XMLHttpRequest();
|
||
|
|
||
|
// Test constant values
|
||
|
assert.equal(0, xhr.UNSENT);
|
||
|
assert.equal(1, xhr.OPENED);
|
||
|
assert.equal(2, xhr.HEADERS_RECEIVED);
|
||
|
assert.equal(3, xhr.LOADING);
|
||
|
assert.equal(4, xhr.DONE);
|
||
|
|
||
|
sys.puts("done");
|