on xenial help sign in
Fixed delegate mapping names.
commit8e7fd7e186132c1ba714981c4f1bd2e35a715815 authorPawel Stolowski <pawel.stolowski@canonical.com> dateThu 13 Jun 2013, 14:12 (13 years ago) parent7c4453f
1 file changed+11−11
tests/qmltests/Dash/tst_DashContent.qml+11−11
tests/qmltests/Dash/tst_DashContent.qml+11−11
@@ -47,18 +47,18 @@ Item {
4747 model: scopesModel
4848 scopes : scopesModel
4949
50− lensMapper : lensDelegateMapper
50+ scopeMapper : scopeDelegateMapper
5151 }
5252
53− LensDelegateMapper {
54− id: lensDelegateMapper
55− lensDelegateMapping: {
56− "MockLens1": "../tests/qmltests/Dash/qml/fake_lensView1.qml",
57− "MockLens2": "../tests/qmltests/Dash/qml/fake_lensView2.qml",
58− "MockLens3": "../tests/qmltests/Dash/qml/fake_lensView3.qml",
59− "MockLens4": "../tests/qmltests/Dash/qml/fake_lensView4.qml"
53+ ScopeDelegateMapper {
54+ id: scopeDelegateMapper
55+ scopeDelegateMapping: {
56+ "MockScope1": "../tests/qmltests/Dash/qml/fake_scopeView1.qml",
57+ "MockScope2": "../tests/qmltests/Dash/qml/fake_scopeView2.qml",
58+ "MockScope3": "../tests/qmltests/Dash/qml/fake_scopeView3.qml",
59+ "MockScope4": "../tests/qmltests/Dash/qml/fake_scopeView4.qml"
6060 }
61− genericLens: "../tests/qmltests/Dash/qml/fake_generic_lensView.qml"
61+ genericScope: "../tests/qmltests/Dash/qml/fake_generic_scopeView.qml"
6262 }
6363
6464 function clear_scope_status() {
@@ -106,7 +106,7 @@ Item {
106106 contentEndReachedSpy.clear()
107107 clear_scope_status();
108108
109− // clear, wait for dahs to empty and load lenses.
109+ // clear, wait for dahs to empty and load scopes.
110110 var dashContentList = findChild(dashContent, "dashContentList");
111111 verify(dashContentList != undefined)
112112 scopesModel.clear();
@@ -200,7 +200,7 @@ Item {
200200 }
201201
202202 function test_scope_mapping(data) {
203− dashContent.setCurrentLensAtIndex(data.index, true, false);
203+ dashContent.setCurrentScopeAtIndex(data.index, true, false);
204204 tryCompareFunction(get_current_item_object_name, data.objectName)
205205 }
206206