twitst4tz

twitter statistics web application
Log | Files | Refs | README | LICENSE

test-constants.js (356B)


      1 var sys = require("util")
      2   , assert = require("assert")
      3   , XMLHttpRequest = require("../lib/XMLHttpRequest").XMLHttpRequest
      4   , xhr = new XMLHttpRequest();
      5 
      6 // Test constant values
      7 assert.equal(0, xhr.UNSENT);
      8 assert.equal(1, xhr.OPENED);
      9 assert.equal(2, xhr.HEADERS_RECEIVED);
     10 assert.equal(3, xhr.LOADING);
     11 assert.equal(4, xhr.DONE);
     12 
     13 sys.puts("done");