Date.prototype.getDay.js 232 B

1234567891011
  1. load("test-common.js");
  2. try {
  3. var d = new Date();
  4. assert(!isNaN(d.getDay()));
  5. assert(0 <= d.getDay() <= 6);
  6. assert(d.getDay() === d.getDay());
  7. console.log("PASS");
  8. } catch (e) {
  9. console.log("FAIL: " + e);
  10. }