mirror of
https://github.com/nasa/openmct.git
synced 2025-06-05 09:00:49 +00:00
parent
6e1a43130d
commit
f8a04d0fc2
@ -151,7 +151,7 @@ define([
|
|||||||
],
|
],
|
||||||
"category": "contextual",
|
"category": "contextual",
|
||||||
"name": "Pause",
|
"name": "Pause",
|
||||||
"cssclass": "icon-pause",
|
"cssClass": "icon-pause",
|
||||||
"priority": "preferred"
|
"priority": "preferred"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -173,7 +173,7 @@ define([
|
|||||||
],
|
],
|
||||||
"category": "contextual",
|
"category": "contextual",
|
||||||
"name": "Stop",
|
"name": "Stop",
|
||||||
"cssclass": "icon-box",
|
"cssClass": "icon-box",
|
||||||
"priority": "preferred"
|
"priority": "preferred"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -172,7 +172,7 @@ define(
|
|||||||
*/
|
*/
|
||||||
TimerController.prototype.buttonCssClass = function () {
|
TimerController.prototype.buttonCssClass = function () {
|
||||||
return this.relevantAction ?
|
return this.relevantAction ?
|
||||||
this.relevantAction.getMetadata().cssclass : "";
|
this.relevantAction.getMetadata().cssClass : "";
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -92,9 +92,9 @@ define(
|
|||||||
}[k]];
|
}[k]];
|
||||||
});
|
});
|
||||||
|
|
||||||
mockStart.getMetadata.andReturn({cssclass: "icon-play", name: "Start"});
|
mockStart.getMetadata.andReturn({cssClass: "icon-play", name: "Start"});
|
||||||
mockPause.getMetadata.andReturn({cssclass: "icon-pause", name: "Pause"});
|
mockPause.getMetadata.andReturn({cssClass: "icon-pause", name: "Pause"});
|
||||||
mockStop.getMetadata.andReturn({cssclass: "icon-box", name: "Stop"});
|
mockStop.getMetadata.andReturn({cssClass: "icon-box", name: "Stop"});
|
||||||
mockScope.domainObject = mockDomainObject;
|
mockScope.domainObject = mockDomainObject;
|
||||||
|
|
||||||
testModel = {};
|
testModel = {};
|
||||||
@ -152,7 +152,7 @@ define(
|
|||||||
expect(controller.text()).toEqual("0D 00:00:00");
|
expect(controller.text()).toEqual("0D 00:00:00");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("shows cssclass & name for the applicable start/pause action", function () {
|
it("shows cssClass & name for the applicable start/pause action", function () {
|
||||||
invokeWatch('domainObject', mockDomainObject);
|
invokeWatch('domainObject', mockDomainObject);
|
||||||
expect(controller.buttonCssClass()).toEqual("icon-play");
|
expect(controller.buttonCssClass()).toEqual("icon-play");
|
||||||
expect(controller.buttonText()).toEqual("Start");
|
expect(controller.buttonText()).toEqual("Start");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user