Skip to content

Commit

Permalink
ghusse#54 Enable / Disabled the slider (tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghusse committed Jul 12, 2013
1 parent 2559f7e commit 5a2591a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tests/unit/editTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,23 @@
}
);

var disabledTest = new TestCase(
"Test disabled state",
function(){
el = $("#test");
el.editRangeSlider({
enabled: false
});
},
function(){
QUnit.ok(el.find(".ui-rangeSlider-leftLabel input").is(":disabled"), "Input should be disabled");
QUnit.ok(el.find(".ui-rangeSlider-rightLabel input").is(":disabled"), "Input should be disabled");

el.editRangeSlider("destroy");
el.empty();
}
);


testRunner.add("jQEditRangeSlider", [
editSetup,
Expand All @@ -210,6 +227,8 @@
destroy,
stepNumberCtor, stepNumberSetter,

destroyTest
destroyTest,

disabledTest
]);
})();

0 comments on commit 5a2591a

Please sign in to comment.