on xenial help sign in
fix some more instnces of .mock
8d7cdf4Michael Terry
tests/qmltests/Dash/tst_DashShell.qml+2−1
@@ -20,6 +20,7 @@ import "../../../qml/Dash"
20import "../../../qml/"
20import "../../../qml/"
21import Ubuntu.Components 1.3
21import Ubuntu.Components 1.3
22import Unity.Test 0.1 as UT
22import Unity.Test 0.1 as UT
23+import LightDMController 0.1
23import LightDM.FullLightDM 0.1 as LightDM
24import LightDM.FullLightDM 0.1 as LightDM
24
25
25Item {
26Item {
@@ -28,7 +29,7 @@ Item {
28 height: units.gu(80)
29 height: units.gu(80)
29
30
30 Binding {
31 Binding {
31− target: LightDM.Users.mock
32+ target: LightDMController
32 property: "userMode"
33 property: "userMode"
33 value: "single"
34 value: "single"
34 }
35 }
tests/qmltests/Greeter/tst_NarrowView.qml+2−1
@@ -18,6 +18,7 @@ import QtQuick 2.4
18import QtTest 1.0
18import QtTest 1.0
19import ".."
19import ".."
20import "../../../qml/Greeter"
20import "../../../qml/Greeter"
21+import LightDMController 0.1
21import LightDM.FullLightDM 0.1 as LightDM
22import LightDM.FullLightDM 0.1 as LightDM
22import Ubuntu.Components 1.3
23import Ubuntu.Components 1.3
23import Ubuntu.Telephony 0.1 as Telephony
24import Ubuntu.Telephony 0.1 as Telephony
@@ -31,7 +32,7 @@ Item {
31 Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark" // use the same theme as the real shell
32 Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark" // use the same theme as the real shell
32
33
33 Binding {
34 Binding {
34− target: LightDM.Users.mock
35+ target: LightDMController
35 property: "userMode"
36 property: "userMode"
36 value: "single"
37 value: "single"
37 }
38 }
tests/qmltests/Greeter/tst_WideView.qml+2−2
@@ -272,7 +272,7 @@ StyledItem {
272 }
272 }
273 }
273 }
274 Connections {
274 Connections {
275− target: LightDM.Sessions.mock
275+ target: LightDMController
276 onSessionModeChanged: {
276 onSessionModeChanged: {
277 if (LightDMController.sessionMode === "full") {
277 if (LightDMController.sessionMode === "full") {
278 multipleSessionsCheckbox.checked = true;
278 multipleSessionsCheckbox.checked = true;
@@ -296,7 +296,7 @@ StyledItem {
296 value: LightDMController.numSessions
296 value: LightDMController.numSessions
297 visible: LightDMController.sessionMode === "full"
297 visible: LightDMController.sessionMode === "full"
298 Binding {
298 Binding {
299− target: LightDM.Sessions.mock
299+ target: LightDMController
300 property: "numSessions"
300 property: "numSessions"
301 value: numSessionsSlider.value
301 value: numSessionsSlider.value
302 }
302 }
tests/qmltests/tst_OrientedShell.qml+2−1
@@ -22,6 +22,7 @@ import Ubuntu.Components 1.3
22import Ubuntu.Components.ListItems 1.3 as ListItem
22import Ubuntu.Components.ListItems 1.3 as ListItem
23import Unity.Application 0.1
23import Unity.Application 0.1
24import Unity.Test 0.1
24import Unity.Test 0.1
25+import LightDMController 0.1
25import LightDM.FullLightDM 0.1 as LightDM
26import LightDM.FullLightDM 0.1 as LightDM
26import Powerd 0.1
27import Powerd 0.1
27import Unity.InputInfo 0.1
28import Unity.InputInfo 0.1
@@ -39,7 +40,7 @@ Rectangle {
39 height: units.gu(100)
40 height: units.gu(100)
40
41
41 Binding {
42 Binding {
42− target: LightDM.Users.mock
43+ target: LightDMController
43 property: "userMode"
44 property: "userMode"
44 value: "single"
45 value: "single"
45 }
46 }