Opal-Estate-Pro/node_modules/xmlhttprequest-ssl/tests/test-constants.js

14 lines
356 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
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");