Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
updated test cases - safari wouldn't let me set a boolean value to a …
Browse files Browse the repository at this point in the history
…property that should have a function (naturally). The tests were broken, the JS was not. Changed the test variable names.

git-svn-id: https://calendardateselect.googlecode.com/svn/trunk@276 4972a71b-da31-0410-b7dd-373b726a5e75
  • Loading branch information
timcharper committed Nov 26, 2007
1 parent e0d2a58 commit f8af518
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions js_test/functional/cds_test.html
Expand Up @@ -106,23 +106,23 @@
test_callBacks: function() { with(this){
$("cds_test").up().build("div", {id: "global"});
cds = new CalendarDateSelect($("cds_test"), {time: "mixed",
before_show: function() { $("global").before_show = true},
after_show: function() { $("global").after_show = true},
before_close: function() { $("global").before_close = true},
after_close: function() { $("global").after_close = true},
after_navigate: function() { $("global").after_navigate = true},
onchange: function() { $("global").onchange = true},
before_show: function() { $("global").before_show_called = true},
after_show: function() { $("global").after_show_called = true},
before_close: function() { $("global").before_close_called = true},
after_close: function() { $("global").after_close_called = true},
after_navigate: function() { $("global").after_navigate_called = true},
onchange: function() { $("global").onchange_called = true},
});
cds.navMonth(1);
cds.navMonth(10);
cds.updateSelectedDate({month: 1, day: 1, year: 2007});
cds.updateSelectedDate({month: 1, day: 3, year: 2007});
cds.close();
assert($('global').before_show, "before_show wasnt called");
assert($('global').after_show, "after_show wasnt called");
assert($('global').before_close, "before_close wasnt called");
assert($('global').after_close, "after_close wasnt called");
assert($('global').after_navigate, "after_navigate wasnt called");
assert($('global').onchange, "onchange wasnt called");
assert($('global').before_show_called, "before_show wasnt called");
assert($('global').after_show_called, "after_show wasnt called");
assert($('global').before_close_called, "before_close wasnt called");
assert($('global').after_close_called, "after_close wasnt called");
assert($('global').after_navigate_called, "after_navigate wasnt called");
assert($('global').onchange_called, "onchange wasnt called");
$("global").remove();
}},
test_disabledElement_cantUpdate: function() {with(this){
Expand Down

0 comments on commit f8af518

Please sign in to comment.