blob: 70b4d260d6ae9f8cad9fab387f0589e5658adb64 [file] [log] [blame]
description("Check the Date's prototype properties.");
// toGMTString.
shouldBe('Date.prototype.toGMTString', 'Date.prototype.toUTCString');
// toUTCString.
shouldBeEqualToString('Date.prototype.toUTCString.name', 'toUTCString');
shouldBe('Date.prototype.toUTCString.length', '0');
shouldBeEqualToString('typeof Date.prototype.toUTCString', 'function');
shouldBeTrue('Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString").configurable');
shouldBeFalse('Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString").enumerable');
shouldBeTrue('Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString").writable');