on xenial help sign in
Fix test I broke in a merge
commitd160f72eae95a6faf28627f89c45872f6c987a83 authorMichael Terry <michael.terry@canonical.com> dateTue 30 Aug 2016, 16:23 (10 years ago) parent997ff13
2 files changed+4−3
qml/Greeter/NarrowView.qml+1 tests/qmltests/Greeter/tst_NarrowView.qml+3−3
qml/Greeter/NarrowView.qml+1
@@ -136,6 +136,7 @@ FocusScope {
136136
137137 // Darken background to match CoverPage
138138 Rectangle {
139+ objectName: "lockscreenShade"
139140 anchors.fill: parent
140141 color: "black"
141142 opacity: root.hasCustomBackground ? 0.4 : 0
tests/qmltests/Greeter/tst_NarrowView.qml+3−3
@@ -346,14 +346,14 @@ Item {
346346 }
347347
348348 function test_customBackground() {
349− var lockscreen = findChild(view, "lockscreen");
349+ var lockscreenShade = findChild(view, "lockscreenShade");
350350 var backgroundShade = findChild(view, "backgroundShade");
351351
352− compare(lockscreen.darkenBackground, 0);
352+ compare(lockscreenShade.opacity, 0);
353353 verify(!backgroundShade.visible);
354354
355355 view.hasCustomBackground = true;
356− compare(lockscreen.darkenBackground, 0.4);
356+ compare(lockscreenShade.opacity, 0.4);
357357 verify(backgroundShade.visible);
358358 }
359359