on xenial help sign in
fakeindicatorsmodeldata: add missing power and calendar items
a88def6Marco Trevisan (Treviño)
tests/mocks/Unity/Indicators/fakeindicatorsmodeldata.js+81−24
@@ -337,34 +337,72 @@ var fakeMenuData = {
337 "type": "com.canonical.indicator.root"
337 "type": "com.canonical.indicator.root"
338 },
338 },
339 "submenu": [
339 "submenu": [
340+ {
341+ "rowData": {
342+ "label": "Livello di carica",
343+ "sensitive": false,
344+ "isSeparator": false,
345+ "icon": "",
346+ "type": "com.canonical.indicator.progress",
347+ "ext": {},
348+ "action": "indicator.battery-level",
349+ "actionState": "100",
350+ "isCheck": false,
351+ "isRadio": false,
352+ "isToggled": false
353+ }
354+ },
355+ {
356+
357+ "rowData": {
358+ "label": "",
359+ "sensitive": true,
360+ "isSeparator": true,
361+ "icon": "",
362+ "type": "",
363+ "ext": {},
364+ "action": "",
365+ "actionState": "",
366+ "isCheck": false,
367+ "isRadio": false,
368+ "isToggled": false
369+ }
370+ },
371+ {
372+
373+ "rowData": {
374+ "label": "",
375+ "sensitive": true,
376+ "isSeparator": false,
377+ "icon": "",
378+ "type": "com.canonical.unity.slider",
379+ "ext": {
380+ "maxIcon": "image://theme/display-brightness-max",
381+ "maxValue": "1",
382+ "minIcon": "image://theme/display-brightness-min",
383+ "minValue": "0",
384+ },
385+ "action": "indicator.brightness",
386+ "actionState": "0.212244897959184",
387+ "isCheck": false,
388+ "isRadio": false,
389+ "isToggled": false
390+ }
391+ },
340− {
392+ {
393+
341 "rowData": {
394 "rowData": {
342− "action": "indicator.activate-statistics",
395+ "label": "Auto-brightness",
343− "actionState": {},
344− "ext": {},
345− "icon": "image://theme/battery-full-charged-symbolic",
346− "isCheck": false,
347− "isRadio": false,
348− "isSeparator": false,
349− "isToggled": false,
350− "label": "Battery (full charged)",
351 "sensitive": true,
396 "sensitive": true,
397+ "isSeparator": false,
398+ "icon": "",
352− "type": "com.canonical.indicator.basic"
399+ "type": "com.canonical.indicator.switch",
353− }
354− },
355− {
356− "rowData": {
357− "action": "indicator.activate-statistics",
358− "actionState": {},
359 "ext": {},
400 "ext": {},
360− "icon": "image://theme/battery-100",
401+ "action": "indicator.auto-brightness",
402+ "actionState": false,
361− "isCheck": false,
403+ "isCheck": true,
362 "isRadio": false,
404 "isRadio": false,
363− "isSeparator": false,
364− "isToggled": false,
405+ "isToggled": false
365− "label": "Battery",
366− "sensitive": true,
367− "type": "com.canonical.indicator.basic"
368 }
406 }
369 },
407 },
370 {
408 {
@@ -591,6 +629,25 @@ var fakeMenuData = {
591 "type": ""
629 "type": ""
592 }
630 }
593 },
631 },
632+ {
633+ "rowData": {
634+ "action": "indicator.calendar",
635+ "actionState": {
636+ "appointment-days": "",
637+ "calendar-day": (new Date).getTime() / 1000,
638+ "show-week-numbers": false,
639+ },
640+ "ext": {},
641+ "icon": "image://theme/calendar",
642+ "isCheck": false,
643+ "isRadio": true,
644+ "isSeparator": false,
645+ "isToggled": false,
646+ "label": "[calendar]",
647+ "sensitive": true,
648+ "type": "com.canonical.indicator.calendar"
649+ }
650+ },
594 {
651 {
595 "rowData": {
652 "rowData": {
596 "action": "",
653 "action": "",