on xenial help sign in
Merge latest trunk
4d68f4fDaniel van Vugt
CMakeLists.txt+1−1
@@ -57,7 +57,7 @@ find_package(Qt5DBus 5.2 REQUIRED)
57find_package(Qt5Concurrent 5.2 REQUIRED)
57find_package(Qt5Concurrent 5.2 REQUIRED)
58find_package(Qt5Sql 5.2 REQUIRED)
58find_package(Qt5Sql 5.2 REQUIRED)
59
59
60−pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=8)
60+pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application>=8)
61
61
62# Standard install paths
62# Standard install paths
63include(GNUInstallDirs)
63include(GNUInstallDirs)
debian/changelog+35
@@ -1,3 +1,38 @@
1+unity8 (8.11+15.10.20151002-0ubuntu1) wily; urgency=medium
2+
3+ [ CI Train Bot ]
4+ * Resync trunk.
5+
6+ [ Lukáš Tinkl ]
7+ * Wizard: skip the reporting page if the system is configured not to
8+ report crashes (LP: #1494442)
9+
10+ -- Ken VanDine <ken.vandine@canonical.com> Fri, 02 Oct 2015 13:24:03 +0000
11+
12+unity8 (8.11+15.10.20151001-0ubuntu1) wily; urgency=medium
13+
14+ [ Alexandros Frantzis ]
15+ * Use power state change reason SnapDecision to turn screen on when a
16+ SnapDecision arrives (LP: #1291455)
17+
18+ [ CI Train Bot ]
19+ * New rebuild forced.
20+
21+ -- Alexandros Frantzis <alexandros.frantzis@canonical.com> Thu, 01 Oct 2015 12:04:04 +0000
22+
23+unity8 (8.11+15.10.20150930.1-0ubuntu1) wily; urgency=medium
24+
25+ [ Albert Astals Cid ]
26+ * Make Launcher::test_quickListMenuOnRMB stable (LP: #1500359)
27+
28+ [ CI Train Bot ]
29+ * New rebuild forced.
30+
31+ [ Michael Zanetti ]
32+ * Stabilize Launcher DND test
33+
34+ -- Michał Sawicz <michal.sawicz@canonical.com> Wed, 30 Sep 2015 10:09:33 +0000
35+
1unity8 (8.11+15.10.20150925-0ubuntu1) wily; urgency=medium
36unity8 (8.11+15.10.20150925-0ubuntu1) wily; urgency=medium
2
37
3 [ Albert Astals Cid ]
38 [ Albert Astals Cid ]
plugins/Powerd/Powerd.h+2
@@ -38,6 +38,8 @@ public:
38 PowerKey = 2, // Display changed state due to user pressing power key
38 PowerKey = 2, // Display changed state due to user pressing power key
39 Proximity = 3, // Display changed state due to proximity events
39 Proximity = 3, // Display changed state due to proximity events
40 Notification = 4, // Display changed state due to user notification
40 Notification = 4, // Display changed state due to user notification
41+ SnapDecision = 5, // Display changed state due to snap decision prompt
42+ CallDone = 6, // Display changed state due to voice call end
41 };
43 };
42
44
43 enum Status {
45 enum Status {
po/ug.po+4−4
@@ -8,15 +8,15 @@ msgstr ""
8"Project-Id-Version: unity\n"
8"Project-Id-Version: unity\n"
9"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
9"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
10"POT-Creation-Date: 2015-09-16 00:49+0200\n"
10"POT-Creation-Date: 2015-09-16 00:49+0200\n"
11−"PO-Revision-Date: 2015-09-24 05:59+0000\n"
11+"PO-Revision-Date: 2015-10-02 03:54+0000\n"
12"Last-Translator: eltikin <eltikinuyghur@hotmail.com>\n"
12"Last-Translator: eltikin <eltikinuyghur@hotmail.com>\n"
13"Language-Team: Uyghur Computer Science Association <UKIJ@yahoogroups.com>\n"
13"Language-Team: Uyghur Computer Science Association <UKIJ@yahoogroups.com>\n"
14"MIME-Version: 1.0\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
16"Content-Transfer-Encoding: 8bit\n"
17"Plural-Forms: nplurals=1; plural=0;\n"
17"Plural-Forms: nplurals=1; plural=0;\n"
18−"X-Launchpad-Export-Date: 2015-09-30 05:43+0000\n"
18+"X-Launchpad-Export-Date: 2015-10-03 05:40+0000\n"
19−"X-Generator: Launchpad (build 17768)\n"
19+"X-Generator: Launchpad (build 17783)\n"
20
20
21#: plugins/IntegratedLightDM/Greeter.cpp:112
21#: plugins/IntegratedLightDM/Greeter.cpp:112
22msgid "Password: "
22msgid "Password: "
@@ -96,7 +96,7 @@ msgstr ""
96#. en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 13:00"
96#. en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 13:00"
97#: plugins/Utils/relativetimeformatter.cpp:216
97#: plugins/Utils/relativetimeformatter.cpp:216
98msgid "Tomorrow %H:%M"
98msgid "Tomorrow %H:%M"
99−msgstr ""
99+msgstr "ئەتە %H:%M"
100
100
101#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
101#. Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
102#. This format string is used for showing, on a 24-hour clock, times that happened in the last week.
102#. This format string is used for showing, on a 24-hour clock, times that happened in the last week.
qml/Notifications/Notification.qml+1−1
@@ -90,7 +90,7 @@ Item {
90 // Turn on screen as needed (Powerd.Notification means the screen
90 // Turn on screen as needed (Powerd.Notification means the screen
91 // stays on for a shorter amount of time)
91 // stays on for a shorter amount of time)
92 if (type == Notification.SnapDecision) {
92 if (type == Notification.SnapDecision) {
93− Powerd.setStatus(Powerd.On, Powerd.Unknown);
93+ Powerd.setStatus(Powerd.On, Powerd.SnapDecision);
94 } else if (type != Notification.Confirmation) {
94 } else if (type != Notification.Confirmation) {
95 Powerd.setStatus(Powerd.On, Powerd.Notification);
95 Powerd.setStatus(Powerd.On, Powerd.Notification);
96 }
96 }
qml/Wizard/Pages/60-reporting.qml+10
@@ -16,14 +16,24 @@
16
16
17import QtQuick 2.0
17import QtQuick 2.0
18import Ubuntu.Components 0.1
18import Ubuntu.Components 0.1
19+import Ubuntu.SystemSettings.Diagnostics 1.0
19import ".." as LocalComponents
20import ".." as LocalComponents
20
21
21LocalComponents.Page {
22LocalComponents.Page {
23+ id: reportingPage
22 objectName: "reportingPage"
24 objectName: "reportingPage"
23
25
24 title: i18n.tr("Improving your experience")
26 title: i18n.tr("Improving your experience")
25 forwardButtonSourceComponent: forwardButton
27 forwardButtonSourceComponent: forwardButton
26
28
29+ skipValid: false
30+ skip: !diagnostics.reportCrashes // skip the page when the system is configured not to report crashes
31+
32+ UbuntuDiagnostics {
33+ id: diagnostics
34+ Component.onCompleted: reportingPage.skipValid = true;
35+ }
36+
27 Column {
37 Column {
28 id: column
38 id: column
29 anchors.fill: content
39 anchors.fill: content
tests/qmltests/Launcher/tst_Launcher.qml+24−13
@@ -200,7 +200,10 @@ Item {
200 verify(!!panel);
200 verify(!!panel);
201
201
202 // wait until it gets fully extended
202 // wait until it gets fully extended
203− tryCompare(panel, "x", 0);
203+ // a tryCompare doesn't work since
204+ // compare(-0.000005917593600024418, 0);
205+ // is true and in this case we want exactly 0 or will have pain later on
206+ tryCompareFunction( function(){ return panel.x === 0; }, true );
204 tryCompare(launcher, "state", "visible");
207 tryCompare(launcher, "state", "visible");
205 }
208 }
206
209
@@ -479,16 +482,21 @@ Item {
479 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 0)
482 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 0)
480
483
481 // Doing longpress
484 // Doing longpress
482− var currentMouseX = draggedItem.width / 2
485+ var mouseOnLauncher = launcher.mapFromItem(draggedItem, draggedItem.width / 2, draggedItem.height / 2)
483− var currentMouseY = draggedItem.height / 2
486+ var currentMouseX = mouseOnLauncher.x
487+ var currentMouseY = mouseOnLauncher.y
488+ var newMouseX = currentMouseX
489+ var newMouseY = currentMouseY
484− mousePress(draggedItem, currentMouseX, currentMouseY)
490+ mousePress(launcher, currentMouseX, currentMouseY)
485 // DraggedItem needs to hide and fakeDragItem become visible
491 // DraggedItem needs to hide and fakeDragItem become visible
486 tryCompare(draggedItem, "itemOpacity", 0)
492 tryCompare(draggedItem, "itemOpacity", 0)
487 tryCompare(fakeDragItem, "visible", true)
493 tryCompare(fakeDragItem, "visible", true)
488
494
489 // Dragging a bit (> 1.5 gu)
495 // Dragging a bit (> 1.5 gu)
490− currentMouseX -= units.gu(2)
496+ newMouseX -= units.gu(2)
491− mouseMove(draggedItem, currentMouseX, currentMouseY)
497+ mouseFlick(launcher, currentMouseX, currentMouseY, newMouseX, newMouseY, false, false, 100)
498+ currentMouseX = newMouseX
499+
492 // Other items need to expand and become 0.6 opaque
500 // Other items need to expand and become 0.6 opaque
493 tryCompare(item0, "angle", 0)
501 tryCompare(item0, "angle", 0)
494 tryCompare(item0, "itemOpacity", 0.6)
502 tryCompare(item0, "itemOpacity", 0.6)
@@ -496,18 +504,21 @@ Item {
496 if (data.fullDrag) {
504 if (data.fullDrag) {
497 // Dragging a bit more
505 // Dragging a bit more
498 if (data.orientation == ListView.Horizontal) {
506 if (data.orientation == ListView.Horizontal) {
499− currentMouseX -= units.gu(15)
507+ newMouseX += units.gu(15)
500− mouseMove(draggedItem, currentMouseX, currentMouseY, 100)
508+ mouseFlick(launcher, currentMouseX, currentMouseY, newMouseX, newMouseY, false, false, 100)
509+ currentMouseX = newMouseX
501
510
502 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 1)
511 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 1)
503 tryCompare(draggedItem, "height", units.gu(1))
512 tryCompare(draggedItem, "height", units.gu(1))
504
513
505 // Dragging downwards. Item needs to move in the model
514 // Dragging downwards. Item needs to move in the model
506− currentMouseY -= initialItemHeight * 1.5
515+ newMouseY -= initialItemHeight * 1.5
507− mouseMove(draggedItem, currentMouseX, currentMouseY)
516+ mouseFlick(launcher, currentMouseX, currentMouseY, newMouseX, newMouseY, false, false, 100)
517+ currentMouseY = newMouseY
508 } else if (data.orientation == ListView.Vertical) {
518 } else if (data.orientation == ListView.Vertical) {
509− currentMouseY -= initialItemHeight * 1.5
519+ newMouseY -= initialItemHeight * 1.5
510− mouseMove(draggedItem, currentMouseX, currentMouseY, 100)
520+ mouseFlick(launcher, currentMouseX, currentMouseY, newMouseX, newMouseY, false, false, 100)
521+ currentMouseY = newMouseY
511
522
512 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 1)
523 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 1)
513 tryCompare(draggedItem, "height", units.gu(1))
524 tryCompare(draggedItem, "height", units.gu(1))
@@ -519,7 +530,7 @@ Item {
519 }
530 }
520
531
521 // Releasing and checking if initial values are restored
532 // Releasing and checking if initial values are restored
522− mouseRelease(draggedItem)
533+ mouseRelease(launcher)
523 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 0)
534 tryCompare(findChild(draggedItem, "dropIndicator"), "opacity", 0)
524 tryCompare(draggedItem, "itemOpacity", 1)
535 tryCompare(draggedItem, "itemOpacity", 1)
525 tryCompare(fakeDragItem, "visible", false)
536 tryCompare(fakeDragItem, "visible", false)
tests/qmltests/Wizard/tst_Wizard.qml+13−12
@@ -158,13 +158,16 @@ Item {
158 return stack.currentPage;
158 return stack.currentPage;
159 }
159 }
160
160
161− function goToPage(name, skipSim, skipLocation) {
161+ function goToPage(name, skipSim, skipLocation, skipReporting) {
162 if (skipSim === undefined) {
162 if (skipSim === undefined) {
163 skipSim = false;
163 skipSim = false;
164 }
164 }
165 if (skipLocation === undefined) {
165 if (skipLocation === undefined) {
166 skipLocation = false;
166 skipLocation = false;
167 }
167 }
168+ if (skipReporting === undefined) {
169+ skipReporting = false;
170+ }
168
171
169 var page = waitForPage("languagePage");
172 var page = waitForPage("languagePage");
170 if (name === page.objectName) return page;
173 if (name === page.objectName) return page;
@@ -191,9 +194,11 @@ Item {
191 tap(findChild(page, "forwardButton"));
194 tap(findChild(page, "forwardButton"));
192 }
195 }
193
196
197+ if (!skipReporting) {
194− page = waitForPage("reportingPage");
198+ page = waitForPage("reportingPage");
195− if (name === page.objectName) return page;
199+ if (name === page.objectName) return page;
196− tap(findChild(page, "forwardButton"));
200+ tap(findChild(page, "forwardButton"));
201+ }
197
202
198 page = waitForPage("finishedPage");
203 page = waitForPage("finishedPage");
199 if (name === page.objectName) return page;
204 if (name === page.objectName) return page;
@@ -337,8 +342,6 @@ Item {
337 tap(findChild(page, "forwardButton"));
342 tap(findChild(page, "forwardButton"));
338 page = waitForPage("locationPage");
343 page = waitForPage("locationPage");
339 tap(findChild(page, "forwardButton"));
344 tap(findChild(page, "forwardButton"));
340− page = waitForPage("reportingPage");
341− tap(findChild(page, "forwardButton"));
342 page = waitForPage("finishedPage");
345 page = waitForPage("finishedPage");
343 tap(findChild(page, "forwardButton"));
346 tap(findChild(page, "forwardButton"));
344
347
@@ -390,8 +393,6 @@ Item {
390 tap(findChild(page, "forwardButton"));
393 tap(findChild(page, "forwardButton"));
391 page = waitForPage("locationPage");
394 page = waitForPage("locationPage");
392 tap(findChild(page, "forwardButton"));
395 tap(findChild(page, "forwardButton"));
393− page = waitForPage("reportingPage");
394− tap(findChild(page, "forwardButton"));
395 page = waitForPage("finishedPage");
396 page = waitForPage("finishedPage");
396 tap(findChild(page, "forwardButton"));
397 tap(findChild(page, "forwardButton"));
397
398
@@ -402,7 +403,7 @@ Item {
402 }
403 }
403
404
404 function test_passwdSwipe() {
405 function test_passwdSwipe() {
405− goToPage(null);
406+ goToPage(null, false, false, true);
406
407
407 tryCompare(setSecuritySpy, "count", 1);
408 tryCompare(setSecuritySpy, "count", 1);
408 compare(setSecuritySpy.signalArguments[0][0], "");
409 compare(setSecuritySpy.signalArguments[0][0], "");
@@ -412,12 +413,12 @@ Item {
412
413
413 function test_locationSkipNoPath() {
414 function test_locationSkipNoPath() {
414 AccountsService.hereLicensePath = "";
415 AccountsService.hereLicensePath = "";
415− goToPage("reportingPage", false, true);
416+ goToPage("finishedPage", false, true, true);
416 }
417 }
417
418
418 function test_locationSkipNoFiles() {
419 function test_locationSkipNoFiles() {
419 AccountsService.hereLicensePath = Qt.resolvedUrl("nolicenses");
420 AccountsService.hereLicensePath = Qt.resolvedUrl("nolicenses");
420− goToPage("reportingPage", false, true);
421+ goToPage("finishedPage", false, true, true);
421 }
422 }
422
423
423 function test_locationWaitOnPath() {
424 function test_locationWaitOnPath() {
@@ -434,7 +435,7 @@ Item {
434 compare(stack.currentPage.skipValid, false);
435 compare(stack.currentPage.skipValid, false);
435
436
436 AccountsService.hereLicensePath = "";
437 AccountsService.hereLicensePath = "";
437− waitForPage("reportingPage");
438+ waitForPage("finishedPage", false, false, true);
438 }
439 }
439
440
440 function test_locationGpsOnly() {
441 function test_locationGpsOnly() {