Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1876)

Side by Side Diff: LayoutTests/fast/harness/should-be-now-expected.txt

Issue 80983002: File constructor understands lastModified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added isolate to v8::Date::New to avoid deprecation warning. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/harness/should-be-now.html ('k') | LayoutTests/resources/js-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Test shouldBeNow() in js-test.js 1 Test shouldBeNow() in js-test.js
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS Date.now() is equivalent to Date.now(). 6 PASS Date.now() is equivalent to Date.now().
7 PASS new Date() is equivalent to Date.now(). 7 PASS new Date() is equivalent to Date.now().
8 Testing type checking with a string. This should fail. 8 Testing type checking with a string. This should fail.
9 FAIL 'Hello world!' is not a number or a Date. Got Hello world! 9 FAIL 'Hello world!' is not a number or a Date. Got Hello world!
10 Testing past dates. This should fail. 10 Testing past dates. This should fail.
11 FAIL 50000 is not the curent time. Got 50000 which is 10 seconds in the past. 11 FAIL 50000 is not the curent time. Got 50000 which is 10 seconds in the past.
12 Testing future dates. This should fail. 12 Testing future dates. This should fail.
13 FAIL 70000 is not the current time. Got 70000 which is 10 seconds in the future. 13 FAIL 70000 is not the current time. Got 70000 which is 10 seconds in the future.
14 Testing a slightly past date with the implicit delta. This should pass.
15 PASS 59990 is equivalent to Date.now().
16 Testing a slightly future date with the implicit delta. This should pass.
17 PASS 60010 is equivalent to Date.now().
18 Testing a past date with a large delta. This should pass.
19 PASS 50000 is equivalent to Date.now().
20 Testing a future date with a large delta. This should pass.
21 PASS 70000 is equivalent to Date.now().
14 Simulating a defective clock that always goes backwards. The test below should f ail. 22 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. 23 FAIL new Date() cannot be tested against the current time. The clock is going ba ckwards too often.
16 PASS successfullyParsed is true 24 PASS successfullyParsed is true
17 25
18 TEST COMPLETE 26 TEST COMPLETE
19 27
OLDNEW
« no previous file with comments | « LayoutTests/fast/harness/should-be-now.html ('k') | LayoutTests/resources/js-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698