Closed
Bug 561528
Opened 14 years ago
Closed 14 years ago
browser_sanitize-timespans.js: |new Date().getMinutes()| usage issue
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla2.0b5
People
(Reporter: sgautherie, Assigned: jdm)
Details
Attachments
(1 file)
1.25 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
Bug 467997 comment 10: { Johnathan Nightingale [:johnath] 2010-04-20 07:25:03 PDT I notice that this test contains the line: var minutesSinceMidnight = new Date().getMinutes(); with minutesSinceMidnight used as a guard around various tests. (c.f. http://mxr.mozilla.org/mozilla-central/source/browser/base/content/test/browser_sanitize-timespans.js#14 and then http://mxr.mozilla.org/mozilla-central/source/browser/base/content/test/browser_sanitize-timespans.js#182 ) new Date().getMinutes() returns minutes since the top of the hour, not since midnight, so all the if blocks testing for minutes > 60 will permanently fail, which means we're not running those tests. }
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → josh
Assignee | ||
Comment 1•14 years ago
|
||
Simple fix that makes an extra six tests run (and pass!) at 3:45am on my local machine.
Attachment #466084 -
Flags: review?
Assignee | ||
Updated•14 years ago
|
Attachment #466084 -
Flags: review? → review?(mconnor)
Updated•14 years ago
|
Attachment #466084 -
Flags: review?(mconnor) → review?(ehsan)
Updated•14 years ago
|
Attachment #466084 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 2•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/e02d8d0d05e4
Assignee | ||
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•14 years ago
|
Flags: in-testsuite+
Target Milestone: --- → mozilla2.0b5
You need to log in
before you can comment on or make changes to this bug.
Description
•