on xenial help sign in
fix some more instnces of .mock
commit8d7cdf4e9c746811f6c5b1dac443d1f2471ba8d2 authorMichael Terry <mike@mterry.name> dateTue 20 Dec 2016, 13:12 (10 years ago) parentedc1008
4 files changed+8−5
tests/qmltests/Dash/tst_DashShell.qml+2−1 tests/qmltests/Greeter/tst_NarrowView.qml+2−1 tests/qmltests/Greeter/tst_WideView.qml+2−2 tests/qmltests/tst_OrientedShell.qml+2−1
tests/qmltests/Dash/tst_DashShell.qml+2−1
@@ -20,6 +20,7 @@ import "../../../qml/Dash"
2020import "../../../qml/"
2121import Ubuntu.Components 1.3
2222import Unity.Test 0.1 as UT
23+import LightDMController 0.1
2324import LightDM.FullLightDM 0.1 as LightDM
2425
2526Item {
@@ -28,7 +29,7 @@ Item {
2829 height: units.gu(80)
2930
3031 Binding {
31− target: LightDM.Users.mock
32+ target: LightDMController
3233 property: "userMode"
3334 value: "single"
3435 }
tests/qmltests/Greeter/tst_NarrowView.qml+2−1
@@ -18,6 +18,7 @@ import QtQuick 2.4
1818import QtTest 1.0
1919import ".."
2020import "../../../qml/Greeter"
21+import LightDMController 0.1
2122import LightDM.FullLightDM 0.1 as LightDM
2223import Ubuntu.Components 1.3
2324import Ubuntu.Telephony 0.1 as Telephony
@@ -31,7 +32,7 @@ Item {
3132 Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark" // use the same theme as the real shell
3233
3334 Binding {
34− target: LightDM.Users.mock
35+ target: LightDMController
3536 property: "userMode"
3637 value: "single"
3738 }
tests/qmltests/Greeter/tst_WideView.qml+2−2
@@ -272,7 +272,7 @@ StyledItem {
272272 }
273273 }
274274 Connections {
275− target: LightDM.Sessions.mock
275+ target: LightDMController
276276 onSessionModeChanged: {
277277 if (LightDMController.sessionMode === "full") {
278278 multipleSessionsCheckbox.checked = true;
@@ -296,7 +296,7 @@ StyledItem {
296296 value: LightDMController.numSessions
297297 visible: LightDMController.sessionMode === "full"
298298 Binding {
299− target: LightDM.Sessions.mock
299+ target: LightDMController
300300 property: "numSessions"
301301 value: numSessionsSlider.value
302302 }
tests/qmltests/tst_OrientedShell.qml+2−1
@@ -22,6 +22,7 @@ import Ubuntu.Components 1.3
2222import Ubuntu.Components.ListItems 1.3 as ListItem
2323import Unity.Application 0.1
2424import Unity.Test 0.1
25+import LightDMController 0.1
2526import LightDM.FullLightDM 0.1 as LightDM
2627import Powerd 0.1
2728import Unity.InputInfo 0.1
@@ -39,7 +40,7 @@ Rectangle {
3940 height: units.gu(100)
4041
4142 Binding {
42− target: LightDM.Users.mock
43+ target: LightDMController
4344 property: "userMode"
4445 value: "single"
4546 }