source: Dev/trunk/src/client/dojox/widget/tests/_Invalidating.js

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 494 bytes
Line 
1define(["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.