Skip to content

Commit 382ef5c

Browse files
committed
spec cleanup
1 parent b2140e8 commit 382ef5c

File tree

3 files changed

+19
-49
lines changed

3 files changed

+19
-49
lines changed

spec/suites/SpecHelper.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
function noSpecs() {
2-
xit('should have specs', function() {
3-
expect('specs').toBe();
4-
});
2+
xit('should have specs');
53
}
64

75
if (!Array.prototype.map) {

spec/suites/core/ClassSpec.js

+4-46
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,6 @@ describe("Class", function() {
4646
expect(method).toHaveBeenCalled();
4747
});
4848

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-
6649
it("should support static properties", function() {
6750
expect(Klass.bla).toEqual(1);
6851
});
@@ -123,34 +106,9 @@ describe("Class", function() {
123106
foo3: 4
124107
});
125108
});
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-
*/
155109
});
110+
111+
// TODO Class.include
112+
113+
// TODO Class.mergeOptions
156114
});

spec/suites/core/UtilSpec.js

+14
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,18 @@ describe('Util', function() {
6060
expect(id2).not.toEqual(id);
6161
});
6262
});
63+
64+
// TODO cancel/requestAnimFrame?
65+
66+
// TODO limitExecByInterval
67+
68+
// TODO formatNum
69+
70+
// TODO splitWords
71+
72+
// TODO setOptions
73+
74+
// TODO getParamString
75+
76+
// TODO template
6377
});

0 commit comments

Comments
 (0)