Merge lp:~yohanboniface/ubuntu-calendar-app/fix1279933 into lp:ubuntu-calendar-app
Proposed by
ybon
Status: | Merged |
---|---|
Approved by: | Kunal Parmar |
Approved revision: | 212 |
Merged at revision: | 215 |
Proposed branch: | lp:~yohanboniface/ubuntu-calendar-app/fix1279933 |
Merge into: | lp:ubuntu-calendar-app |
Diff against target: |
48 lines (+13/-4) 3 files modified
TimeLineBase.qml (+2/-4) dateExt.js (+6/-0) tests/unittests/tst_date.qml (+5/-0) |
To merge this branch: | bzr merge lp:~yohanboniface/ubuntu-calendar-app/fix1279933 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Olivier Tilloy (community) | Approve | ||
Review via email: mp+208970@code.launchpad.net |
Commit message
Add a method for getting the correct end of day date, and use it on dayview.
Description of the change
Add a method for getting the correct end of day date, and use it on dayview.
To post a comment you must log in.
Thanks for the patch Yohan! I tested it and it seems to fix the issue, nice job.
Looking at the bug report, you were looking at writing tests. The calendar application has two types of tests:
- unit tests that essentially test the helpers in dateExt.js
- autopilot tests that test the UI and user interaction (they’re more like integration tests)
For this specific issue, I guess we could write both types of tests, but a good start would be to add a unit test for the new endOfDay() function. You can do that by adding a test to tests/unittests /tst_date. qml.
To execute the unit tests, just run:
cmake .
ctest -V
I’m approving as anyways it is good to be merged as is, the tests would be a nice addition but not strictly necessary.