Merge lp:~renatofilho/ubuntu-calendar-app/fix-unit-tests into lp:ubuntu-calendar-app

Proposed by Renato Araujo Oliveira Filho
Status: Superseded
Proposed branch: lp:~renatofilho/ubuntu-calendar-app/fix-unit-tests
Merge into: lp:ubuntu-calendar-app
Diff against target: 87 lines (+20/-17)
2 files modified
debian/control (+15/-15)
tests/unittests/tst_event_bubble.qml (+5/-2)
To merge this branch: bzr merge lp:~renatofilho/ubuntu-calendar-app/fix-unit-tests
Reviewer Review Type Date Requested Status
Ubuntu Calendar Developers Pending
Review via email: mp+298446@code.launchpad.net

This proposal has been superseded by a proposal from 2016-06-27.

Commit message

[tst_new_event] Added missing build dep necessary for tests.
[tst_event_bubble] Make sure that initial event start date is always in the future.

To post a comment you must log in.
854. By Renato Araujo Oliveira Filho

More missing deps.

855. By Renato Araujo Oliveira Filho

Parent merged: ~osomon/ubuntu-calendar-app/deps-cleanup

856. By Renato Araujo Oliveira Filho

Reverted changes on debian/control.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-09-19 11:35:21 +0000
3+++ debian/control 2016-06-27 16:52:35 +0000
4@@ -5,10 +5,12 @@
5 debhelper (>= 9),
6 intltool,
7 python3,
8+ qml-module-qtorganizer,
9+ qml-module-qtquick2,
10+ qml-module-qttest,
11+ qt5-default,
12 qtdeclarative5-dev-tools,
13- qt5-default,
14- qtdeclarative5-qtquick2-plugin,
15- qtdeclarative5-test-plugin,
16+ qtdeclarative5-ubuntu-content1,
17 Standards-Version: 3.9.4
18 Section: misc
19 Homepage: https://launchpad.net/ubuntu-calendar-app
20@@ -17,18 +19,17 @@
21 Package: calendar-app
22 Architecture: all
23 Depends: ${misc:Depends},
24+ libqt5contacts5,
25+ libqt5organizer5,
26 qmlscene,
27- qtdeclarative5-quicklayouts-plugin,
28+ qml-module-qtcontacts,
29+ qml-module-qtorganizer,
30+ qml-module-qtquick-layouts,
31+ qtcontact5-galera,
32+ qtdeclarative5-ubuntu-syncmonitor0.1,
33 qtdeclarative5-ubuntu-ui-toolkit-plugin | qt-components-ubuntu,
34- ${misc:Depends},
35- libqt5organizer5,
36- qtdeclarative5-qtorganizer-plugin,
37 qtorganizer5-eds,
38- qtdeclarative5-ubuntu-syncmonitor0.1,
39 ubuntu-mobile-icons | suru-icon-theme,
40- libqt5contacts5,
41- qtdeclarative5-qtcontacts-plugin,
42- qtcontact5-galera,
43 Description: Calendar application for Ubuntu devices
44 The Calendar application for Ubuntu devices lets you organise your life your
45 way by month, week or daily diary.
46@@ -39,13 +40,12 @@
47
48 Package: calendar-app-autopilot
49 Architecture: all
50-Depends: libautopilot-qt (>= 1.4),
51- libqt5test5,
52+Depends: address-book-service-dummy,
53+ address-book-service-testability,
54+ autopilot-qt5,
55 calendar-app (= ${source:Version}),
56 python3-dateutil,
57 ubuntu-ui-toolkit-autopilot,
58- address-book-service-dummy,
59- address-book-service-testability
60 Description: Autopilot tests for Ubuntu Calendar Application
61 This package contains autopilot tests for the Ubuntu Calendar application.
62
63
64=== modified file 'tests/unittests/tst_event_bubble.qml'
65--- tests/unittests/tst_event_bubble.qml 2016-03-31 19:19:33 +0000
66+++ tests/unittests/tst_event_bubble.qml 2016-06-27 16:52:35 +0000
67@@ -2,6 +2,8 @@
68 import QtTest 1.0
69 import QtOrganizer 5.0
70
71+import "../../dateExt.js" as DATE
72+
73 TestCase{
74 id: root
75 name: "Event Bubble tests"
76@@ -107,8 +109,9 @@
77 function init()
78 {
79 var collectionId = get_collection_id_by_name(root.model, root.collection.name)
80- var startDate = new Date(2016, 3, 28, 14, 0,0 )
81- var endDate = new Date(2016, 3, 28, 15, 0,0 )
82+ var startDate = new Date()
83+ startDate = startDate.addDays(1)
84+ var endDate = startDate.addMinutes(60)
85 var eventData = {"collectionId": collectionId,
86 "label": "Sample Test Event",
87 "allDay": false,

Subscribers

People subscribed via source and target branches

to status/vote changes: