OLD | NEW |
(Empty) | |
| 1 Test shouldBeNow() in js-test.js |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS Date.now() is equivalent to Date.now(). |
| 7 PASS new Date() is equivalent to Date.now(). |
| 8 Testing type checking with a string. This should fail. |
| 9 FAIL 'Hello world!' is not a number or a Date. Got Hello world! |
| 10 Testing past dates. This should fail. |
| 11 FAIL 50000 is not the curent time. Got 50000 which is 10 seconds in the past. |
| 12 Testing future dates. This should fail. |
| 13 FAIL 70000 is not the current time. Got 70000 which is 10 seconds in the future. |
| 14 Simulating a defective clock that always goes backwards. The test below should f
ail. |
| 15 FAIL new Date() cannot be tested against the current time. The clock is going ba
ckwards too often. |
| 16 PASS successfullyParsed is true |
| 17 |
| 18 TEST COMPLETE |
| 19 |
OLD | NEW |