on xenial help sign in
fixed indent
commit10b9065f931f1fb3eb7196ab3f1578ed9bf3b00c authorNick Dedekind <nick.dedekind@canonical.com> dateTue 7 Oct 2014, 11:47 (12 years ago) parent1b3c968
1 file changed+70−70
tests/qmltests/Panel/Indicators/tst_DefaultIndicatorPage.qml+70−70
tests/qmltests/Panel/Indicators/tst_DefaultIndicatorPage.qml+70−70
@@ -25,7 +25,7 @@ Item {
2525 width: units.gu(40)
2626 height: units.gu(70)
2727
28− DefaultIndicatorPage {
28+ DefaultIndicatorPage {
2929 id: page
3030 anchors.fill: parent
3131
@@ -35,23 +35,36 @@ Item {
3535 menuObjectPath: "/com/canonical/indicator/test"
3636 }
3737
38− property var fullMenuData: [{
39− "rowData": { // 1
40− "label": "root",
41− "sensitive": true,
42− "isSeparator": false,
43− "icon": "",
44− "type": "com.canonical.indicator.root",
45− "ext": {},
46− "action": "",
47− "actionState": {},
48− "isCheck": false,
49− "isRadio": false,
50− "isToggled": false,
51− },
52− "submenu": [{
53− "rowData": { // 1.1
54− "label": "menu1",
38+ property var fullMenuData: [{
39+ "rowData": { // 1
40+ "label": "root",
41+ "sensitive": true,
42+ "isSeparator": false,
43+ "icon": "",
44+ "type": "com.canonical.indicator.root",
45+ "ext": {},
46+ "action": "",
47+ "actionState": {},
48+ "isCheck": false,
49+ "isRadio": false,
50+ "isToggled": false,
51+ },
52+ "submenu": [{
53+ "rowData": { // 1.1
54+ "label": "menu1",
55+ "sensitive": true,
56+ "isSeparator": false,
57+ "icon": "",
58+ "type": "",
59+ "ext": {},
60+ "action": "",
61+ "actionState": {},
62+ "isCheck": false,
63+ "isRadio": false,
64+ "isToggled": false,
65+ }}, {
66+ "rowData": { // 1.2
67+ "label": "menu2",
5568 "sensitive": true,
5669 "isSeparator": false,
5770 "icon": "",
@@ -63,58 +76,45 @@ Item {
6376 "isRadio": false,
6477 "isToggled": false,
6578 }}, {
66− "rowData": { // 1.2
67− "label": "menu2",
68− "sensitive": true,
69− "isSeparator": false,
70− "icon": "",
71− "type": "",
72− "ext": {},
73− "action": "",
74− "actionState": {},
75− "isCheck": false,
76− "isRadio": false,
77− "isToggled": false,
78− }}, {
79− "rowData": { // row 1.2
80− "label": "menu3",
81− "sensitive": true,
82− "isSeparator": false,
83− "icon": "",
84− "type": "",
85− "ext": {},
86− "action": "",
87− "actionState": {},
88− "isCheck": false,
89− "isRadio": false,
90− "isToggled": false,
91− }}
92− ]
93− }]; // end row 1
94−
95− property var emptySubMenuData: [{
96− "rowData": { // 1
97− "label": "root",
98− "sensitive": true,
99− "isSeparator": false,
100− "icon": "",
101− "type": "com.canonical.indicator.root",
102− "ext": {},
103− "action": "",
104− "actionState": {},
105− "isCheck": false,
106− "isRadio": false,
107− "isToggled": false,
108− },
109− "submenu": []
110− }]; // end row 1
111−
112− function initializeMenuData(data) {
113− Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicator.test",
114− "/com/canonical/indicator/test",
115− "/com/canonical/indicator/test",
116− data);
117− }
79+ "rowData": { // row 1.2
80+ "label": "menu3",
81+ "sensitive": true,
82+ "isSeparator": false,
83+ "icon": "",
84+ "type": "",
85+ "ext": {},
86+ "action": "",
87+ "actionState": {},
88+ "isCheck": false,
89+ "isRadio": false,
90+ "isToggled": false,
91+ }}
92+ ]
93+ }]; // end row 1
94+
95+ property var emptySubMenuData: [{
96+ "rowData": { // 1
97+ "label": "root",
98+ "sensitive": true,
99+ "isSeparator": false,
100+ "icon": "",
101+ "type": "com.canonical.indicator.root",
102+ "ext": {},
103+ "action": "",
104+ "actionState": {},
105+ "isCheck": false,
106+ "isRadio": false,
107+ "isToggled": false,
108+ },
109+ "submenu": []
110+ }]; // end row 1
111+
112+ function initializeMenuData(data) {
113+ Indicators.UnityMenuModelCache.setCachedModelData("com.canonical.indicator.test",
114+ "/com/canonical/indicator/test",
115+ "/com/canonical/indicator/test",
116+ data);
117+ }
118118
119119 UT.UnityTestCase {
120120 name: "DefaultIndicatorPage"