[Timer] cssclass to cssClass

Along with preceding changes, fixes #623
This commit is contained in:
Victor Woeltjen 2017-05-03 16:30:06 -07:00
parent 6e1a43130d
commit f8a04d0fc2
3 changed files with 7 additions and 7 deletions

View File

@ -151,7 +151,7 @@ define([
],
"category": "contextual",
"name": "Pause",
"cssclass": "icon-pause",
"cssClass": "icon-pause",
"priority": "preferred"
},
{
@ -173,7 +173,7 @@ define([
],
"category": "contextual",
"name": "Stop",
"cssclass": "icon-box",
"cssClass": "icon-box",
"priority": "preferred"
}
],

View File

@ -172,7 +172,7 @@ define(
*/
TimerController.prototype.buttonCssClass = function () {
return this.relevantAction ?
this.relevantAction.getMetadata().cssclass : "";
this.relevantAction.getMetadata().cssClass : "";
};
/**

View File

@ -92,9 +92,9 @@ define(
}[k]];
});
mockStart.getMetadata.andReturn({cssclass: "icon-play", name: "Start"});
mockPause.getMetadata.andReturn({cssclass: "icon-pause", name: "Pause"});
mockStop.getMetadata.andReturn({cssclass: "icon-box", name: "Stop"});
mockStart.getMetadata.andReturn({cssClass: "icon-play", name: "Start"});
mockPause.getMetadata.andReturn({cssClass: "icon-pause", name: "Pause"});
mockStop.getMetadata.andReturn({cssClass: "icon-box", name: "Stop"});
mockScope.domainObject = mockDomainObject;
testModel = {};
@ -152,7 +152,7 @@ define(
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);
expect(controller.buttonCssClass()).toEqual("icon-play");
expect(controller.buttonText()).toEqual("Start");