Line | |
---|
1 | define(["doh", "dojo/_base/declare", "../_Invalidating", "dijit/_WidgetBase"], |
---|
2 | function(doh, declare, _Invalidating, _WidgetBase){ |
---|
3 | doh.register("tests._Invalidating", [ |
---|
4 | function test_Lifecycle(t){ |
---|
5 | var C = declare("MyWidget", [_WidgetBase, _Invalidating], { |
---|
6 | constructor: function(){ |
---|
7 | this.invalidatingProperties = ["a"]; |
---|
8 | this.addInvalidatingProperties(["b"]); |
---|
9 | } |
---|
10 | }); |
---|
11 | var o = new C(); |
---|
12 | o.startup(); |
---|
13 | t.is(["a", "b"], o.invalidatingProperties); |
---|
14 | } |
---|
15 | ]); |
---|
16 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.