Closed
Bug 975738
Opened 10 years ago
Closed 10 years ago
Fix broken agenda sidebar tests in testTodayPane.js
Categories
(Calendar :: Calendar Frontend, defect)
Calendar
Calendar Frontend
Tracking
(Not tracked)
RESOLVED
FIXED
3.2
People
(Reporter: aryx, Assigned: aryx)
Details
Attachments
(1 file, 2 obsolete files)
4.71 KB,
patch
|
Details | Diff | Splinter Review |
Bug 781424 / http://hg.mozilla.org/comm-central/rev/331134c6846e broke the tests for the labels of the upcoming events of the today pane / agenda sidebar.
Attachment #8380205 -
Flags: review?(gasell+mozilla)
Comment 1•10 years ago
|
||
Comment on attachment 8380205 [details] [diff] [review] patch, v1 Review of attachment 8380205 [details] [diff] [review]: ----------------------------------------------------------------- I found some things that could be improved. Therefore r- for this version. ::: calendar/test/mozmill/testTodayPane.js @@ +130,5 @@ > + probeDate.year = now.getFullYear(); > + probeDate.month = now.getMonth(); > + probeDate.day = now.getDate(); > + probeDate.hour = startHour; > + probeDate.minute = 0; This could be shortened a bit here and afterwards if you used something like: let dtz = cal.calendarDefaultTimezone(); let probeDate = cal.jsDateToDateTime(now, dtz); cal would be available after Components.utils.import("resource://calendar/modules/calUtils.jsm"); as usual. @@ +145,5 @@ > + probeDate.hour = startHour; > + probeDate.year = tomorrow.getFullYear(); > + probeDate.month = tomorrow.getMonth(); > + probeDate.day = tomorrow.getDate(); > + probeDate.hour = 9; First assignment to hour seems unnecessary? @@ +146,5 @@ > + probeDate.year = tomorrow.getFullYear(); > + probeDate.month = tomorrow.getMonth(); > + probeDate.day = tomorrow.getDate(); > + probeDate.hour = 9; > + let startTime = dateFormatter.formatTime(probeDate); let isn't really needed any more as it's already declared above. @@ +158,4 @@ > '/id("messengerWindow")/id("tabmail-container")/id("today-pane-panel")/[1]/id("agenda-panel")/' > + '{"flex":"1"}/id("agenda-listbox")/[6]/anon({"anonid":"agenda-container-box"})/' > + 'anon({"anonid":"agenda-description"})/[1]'), > "Future's Event"); As you're already checking other times I'd check date and time of the future event too. This way you'll have both title and datetime information display verified for all events. Shouldn't be more difficult than a formatDateTime call.
Attachment #8380205 -
Flags: review?(gasell+mozilla) → review-
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8380205 -
Attachment is obsolete: true
Attachment #8384353 -
Flags: review?(gasell+mozilla)
Comment 3•10 years ago
|
||
Comment on attachment 8384353 [details] [diff] [review] patch, v2 Review of attachment 8384353 [details] [diff] [review]: ----------------------------------------------------------------- Looks good and works well. r=merike
Attachment #8384353 -
Flags: review?(gasell+mozilla) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8384353 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 5•10 years ago
|
||
https://hg.mozilla.org/comm-central/rev/7f53db3e4322
Updated•10 years ago
|
Target Milestone: --- → 3.2
You need to log in
before you can comment on or make changes to this bug.
Description
•