~aacid/unity8/card_optimizations

« back to all changes in this revision

Viewing changes to tests/qmltests/Dash/tst_Dash.qml

  • Committer: Albert Astals
  • Date: 2014-04-17 11:11:27 UTC
  • mfrom: (796.6.43 unity8)
  • Revision ID: albert.astals@canonical.com-20140417111127-jns8uvil2t6oen23
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        showScopeOnLoaded: "MockScope2"
42
42
    }
43
43
 
44
 
    ScopeDelegateMapper {
45
 
        id: scopeDelegateMapper
46
 
        scopeDelegateMapping: {
47
 
            "MockScope1": Qt.resolvedUrl("qml/fake_scopeView1.qml"),
48
 
            "MockScope2": Qt.resolvedUrl("qml/fake_scopeView2.qml"),
49
 
            "clickscope": Qt.resolvedUrl("qml/fake_scopeView3.qml")
50
 
        }
51
 
        genericScope: Qt.resolvedUrl("qml/fake_generic_scopeView.qml")
52
 
    }
53
 
 
54
44
    UT.UnityTestCase {
55
45
        name: "Dash"
56
46
        when: windowShown
59
49
 
60
50
        Component.onCompleted: {
61
51
            var dashContent = findChild(dash, "dashContent");
62
 
            dashContent.scopeMapper = scopeDelegateMapper;
63
52
            scopes = dashContent.scopes;
64
53
        }
65
54