on xenial help sign in
Fix test broken by SDK behaviour change
commitcf1bb10a71f0e67c699ff5b4f622337968f26db5 authorAlbert Astals <albert.astals@canonical.com> dateMon 24 Nov 2014, 12:28 (12 years ago) parent07e4d0d
2 files changed+4−4
tests/qmltests/Dash/tst_GenericScopeView.qml+2−2 tests/qmltests/Dash/tst_PreviewListView.qml+2−2
tests/qmltests/Dash/tst_GenericScopeView.qml+2−2
@@ -461,8 +461,8 @@ Item {
461461
462462 var innerHeader = findChild(header, "innerPageHeader");
463463 verify(innerHeader, "Could not find the inner header");
464− verify(Qt.colorEqual(innerHeader.textColor, data.foreground),
465− "Foreground color not equal: %1 != %2".arg(innerHeader.textColor).arg(data.foreground));
464+ verify(Qt.colorEqual(innerHeader.config.foregroundColor, data.foreground),
465+ "Foreground color not equal: %1 != %2".arg(innerHeader.config.foregroundColor).arg(data.foreground));
466466
467467 var background = findChild(header, "headerBackground");
468468 verify(background, "Could not find the background");
tests/qmltests/Dash/tst_PreviewListView.qml+2−2
@@ -100,8 +100,8 @@ Rectangle {
100100
101101 var innerHeader = findChild(header, "innerPageHeader");
102102 verify(innerHeader, "Could not find the inner header");
103− verify(Qt.colorEqual(innerHeader.textColor, UbuntuColors.darkGrey),
104− "Foreground color not equal: %1 != %2".arg(innerHeader.textColor).arg(UbuntuColors.darkGrey));
103+ verify(Qt.colorEqual(innerHeader.config.foregroundColor, UbuntuColors.darkGrey),
104+ "Foreground color not equal: %1 != %2".arg(innerHeader.config.foregroundColor).arg(UbuntuColors.darkGrey));
105105
106106 var background = findChild(header, "headerBackground");
107107 verify(background, "Could not find the background");