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

Issue 69813015: Add shouldBeNow() to js-tests.js in LayoutTests. (Closed)

Created:
7 years, 1 month ago by pwnall-personal
Modified:
7 years ago
Reviewers:
ojan
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add shouldBeNow() to js-tests.js in LayoutTests. The function checks that an expression returns the current time. The check is non-trivial, given that time might go backwards due to NTP updates. BUG=320686 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162645

Patch Set 1 #

Patch Set 2 : Update comments with NTP -> DST. #

Patch Set 3 : Don't use dates in fail testing. Their output is timezone-dependant. #

Total comments: 2

Patch Set 4 : Removed underscores in shouldBeNow. #

Patch Set 5 : Rebased against master. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -0 lines) Patch
A LayoutTests/fast/harness/should-be-now.html View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/harness/should-be-now-expected.txt View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M LayoutTests/resources/js-test.js View 1 2 3 4 1 chunk +33 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
pwnall-personal
The File API mandates that the lastModifiedTime property returns the current time under some circumstances. ...
7 years, 1 month ago (2013-11-18 16:55:45 UTC) #1
pwnall-personal
On 2013/11/18 16:55:45, pwnall wrote: > The File API mandates that the lastModifiedTime property returns ...
7 years, 1 month ago (2013-11-18 21:04:16 UTC) #2
pwnall-personal
On 2013/11/18 21:04:16, pwnall wrote: > On 2013/11/18 16:55:45, pwnall wrote: > > The File ...
7 years, 1 month ago (2013-11-21 02:16:39 UTC) #3
ojan
I'm not opposed to this, but I'm having trouble seeing the value. Other than the ...
7 years, 1 month ago (2013-11-23 01:41:30 UTC) #4
pwnall-personal
On 2013/11/23 01:41:30, ojan wrote: > I'm not opposed to this, but I'm having trouble ...
7 years, 1 month ago (2013-11-23 01:47:26 UTC) #5
pwnall-personal
https://codereview.chromium.org/69813015/diff/80001/LayoutTests/resources/js-test.js File LayoutTests/resources/js-test.js (right): https://codereview.chromium.org/69813015/diff/80001/LayoutTests/resources/js-test.js#newcode574 LayoutTests/resources/js-test.js:574: for (var _i = 0; _i < 1000; ++_i) ...
7 years, 1 month ago (2013-11-23 01:56:22 UTC) #6
ojan
lgtm https://codereview.chromium.org/69813015/diff/240001/LayoutTests/resources/js-test.js File LayoutTests/resources/js-test.js (right): https://codereview.chromium.org/69813015/diff/240001/LayoutTests/resources/js-test.js#newcode574 LayoutTests/resources/js-test.js:574: for (var i = 0; i < 1000; ...
7 years ago (2013-11-25 22:50:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/costan@gmail.com/69813015/240001
7 years ago (2013-11-25 22:50:40 UTC) #8
commit-bot: I haz the power
7 years ago (2013-11-26 00:24:05 UTC) #9
Message was sent while issue was closed.
Change committed as 162645

Powered by Google App Engine
This is Rietveld 408576698