@@ -21,6 +21,7 @@ import QtQuick 2.0
21import QtTest 1.0
21import QtTest 1.0
22import GSettings 1.0
22import GSettings 1.0
23import LightDM 0.1 as LightDM
23import LightDM 0.1 as LightDM
24+import Ubuntu.Connectivity 0.1
24import Unity.Application 0.1
25import Unity.Application 0.1
25import Unity.Test 0.1 as UT
26import Unity.Test 0.1 as UT
26import Powerd 0.1
27import Powerd 0.1
@@ -28,6 +29,7 @@ import Powerd 0.1
28import "../../qml"
29import "../../qml"
31 width: shell.width
33 width: shell.width
32 height: shell.height
34 height: shell.height
@@ -51,6 +53,11 @@ Item {
54 SignalSpy {
61 SignalSpy {
55 id: sessionSpy
62 id: sessionSpy
56 signalName: "sessionStarted"
63 signalName: "sessionStarted"
@@ -61,6 +68,12 @@ Item {
61 signalName: "setCurrentScopeCalled"
68 signalName: "setCurrentScopeCalled"
72+ id: unlockAllModemsSpy
74+ signalName: "unlockingAllModems"
64 UT.UnityTestCase {
77 UT.UnityTestCase {
65 name: "Shell"
78 name: "Shell"
66 when: windowShown
79 when: windowShown
@@ -431,5 +444,13 @@ Item {
432 touchRelease(shell);
445 touchRelease(shell);
448+ function test_unlockAllModemsOnBoot() {
449+ unlockAllModemsSpy.clear()
450+ // actually create an object so we notice the onCompleted signal
451+ var greeter = shellComponent.createObject(root)
452+ tryCompare(unlockAllModemsSpy, "count", 1)