sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
494 B

define(["doh", "dojo/_base/declare", "../_Invalidating", "dijit/_WidgetBase"],
function(doh, declare, _Invalidating, _WidgetBase){
doh.register("tests._Invalidating", [
function test_Lifecycle(t){
var C = declare("MyWidget", [_WidgetBase, _Invalidating], {
constructor: function(){
this.invalidatingProperties = ["a"];
this.addInvalidatingProperties(["b"]);
}
});
var o = new C();
o.startup();
t.is(["a", "b"], o.invalidatingProperties);
}
]);
});