dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
15 lines (14 loc) • 455 B
JavaScript
define(["doh", "../Calendar", "dojo/when", "dojo/store/JsonRest"],
function(doh, Calendar, when, JsonRest){
doh.register("tests.unitTest_Store", [
function test_Error(t){
var calendar = new Calendar();
var d = when(calendar.set("store", new JsonRest({ target: "/" }), function(){
t.f(true, "ok fct must not have been called");
}, function(){
t.t(true, "failure fct must have been called");
}));
calendar.startup();
}
]);
});