@@ -46,23 +46,6 @@ describe("Class", function() {
46
46
expect ( method ) . toHaveBeenCalled ( ) ;
47
47
} ) ;
48
48
49
- /* superclass deprecated
50
- it("should grant the ability to call parent methods, including constructor", function() {
51
- var Klass2 = Klass.extend({
52
- initialize: function() {},
53
- bar: function() {}
54
- });
55
-
56
- var b = new Klass2();
57
-
58
- expect(constructor).not.toHaveBeenCalled();
59
- b.constructor.superclass.initialize.call(this);
60
- expect(constructor).toHaveBeenCalled();
61
-
62
- b.constructor.superclass.bar.call(this);
63
- expect(method).toHaveBeenCalled();
64
- }); */
65
-
66
49
it ( "should support static properties" , function ( ) {
67
50
expect ( Klass . bla ) . toEqual ( 1 ) ;
68
51
} ) ;
@@ -123,34 +106,9 @@ describe("Class", function() {
123
106
foo3 : 4
124
107
} ) ;
125
108
} ) ;
126
-
127
- /* superclass deprecated
128
- it("should have working superclass access with inheritance level > 2", function() {
129
- var constructor2 = jasmine.createSpy("Klass2 constructor"),
130
- constructor3 = jasmine.createSpy("Klass3 constructor");
131
-
132
- var Klass2 = Klass.extend({
133
- initialize: function() {
134
- constructor2();
135
- expect(Klass2.superclass).toBe(Klass.prototype);
136
- Klass2.superclass.initialize.apply(this, arguments);
137
- }
138
- });
139
-
140
- var Klass3 = Klass2.extend({
141
- initialize: function() {
142
- constructor3();
143
- expect(Klass3.superclass).toBe(Klass2.prototype);
144
- Klass3.superclass.initialize.apply(this, arguments);
145
- }
146
- });
147
-
148
- var a = new Klass3();
149
-
150
- expect(constructor3).toHaveBeenCalled();
151
- expect(constructor2).toHaveBeenCalled();
152
- expect(constructor).toHaveBeenCalled();
153
- });
154
- */
155
109
} ) ;
110
+
111
+ // TODO Class.include
112
+
113
+ // TODO Class.mergeOptions
156
114
} ) ;
0 commit comments