- Timestamp:
- 2011-07-20 15:12:42 (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kauri-jquery/src/test/kauri.util/test-core.js
r1892 r1915 75 75 return "X(x:'" + this.x + "'|inits:" + this.inits + ")" 76 76 }; 77 Base.prototype.fn = function(){ 78 return "Base"; 79 } 77 80 78 81 $.inherit(Sub, Base); … … 96 99 return "Y(x:'" + this.x + "'|y:'" + this.y + "'|inits:" + this.inits + ")" 97 100 }; 98 101 Sub.prototype.fn = function(){ 102 return this['<super.call>']("fn") + "Sub"; 103 } 99 104 100 105 $.inherit(SubSub, Sub); … … 105 110 SubSub.prototype.S = true; 106 111 107 expect( 8);112 expect(9); 108 113 109 114 var s = new Sub("x", "y"); … … 118 123 equals(s2.inits['x-deco'], "sub-deco-x"); 119 124 equals(s2.inits['y-deco'], "sub-deco-y"); 125 equals(s2.fn(), "BaseSub"); 120 126 }); 121 127
Note: See TracChangeset
for help on using the changeset viewer.