spinner test: currency

This commit is contained in:
Chi Cheng 2008-08-19 18:35:25 +00:00
parent 6d0e27d2de
commit 50fae3972c

View File

@ -71,9 +71,9 @@ test("defaults", function() {
test("set defaults on init", function() {
expect(7);
el = $("#spin").spinner({ currency:true, disabled:true, incremental:false, max:200, min:-100, start:50, stepping:2 });
el = $("#spin").spinner({ currency:"£¤", disabled:true, incremental:false, max:200, min:-100, start:50, stepping:2 });
equals(el.data("currency.spinner"), true, "currency");
equals(el.data("currency.spinner"), "£¤", "currency");
equals(el.data("disabled.spinner"), true, "disabled");
equals(el.data("incremental.spinner"), false, "incremental");
equals(el.data("max.spinner"), 200, "max");