From 382ef5c0b2fe3f9a2d8eb5820474c592db01b240 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Thu, 5 Jul 2012 12:54:40 +0300 Subject: [PATCH] spec cleanup --- spec/suites/SpecHelper.js | 4 +-- spec/suites/core/ClassSpec.js | 50 +++-------------------------------- spec/suites/core/UtilSpec.js | 14 ++++++++++ 3 files changed, 19 insertions(+), 49 deletions(-) diff --git a/spec/suites/SpecHelper.js b/spec/suites/SpecHelper.js index fb88857f..e1699d1a 100644 --- a/spec/suites/SpecHelper.js +++ b/spec/suites/SpecHelper.js @@ -1,7 +1,5 @@ function noSpecs() { - xit('should have specs', function() { - expect('specs').toBe(); - }); + xit('should have specs'); } if (!Array.prototype.map) { diff --git a/spec/suites/core/ClassSpec.js b/spec/suites/core/ClassSpec.js index d6eef3d5..414cd0dc 100644 --- a/spec/suites/core/ClassSpec.js +++ b/spec/suites/core/ClassSpec.js @@ -46,23 +46,6 @@ describe("Class", function() { expect(method).toHaveBeenCalled(); }); - /* superclass deprecated - it("should grant the ability to call parent methods, including constructor", function() { - var Klass2 = Klass.extend({ - initialize: function() {}, - bar: function() {} - }); - - var b = new Klass2(); - - expect(constructor).not.toHaveBeenCalled(); - b.constructor.superclass.initialize.call(this); - expect(constructor).toHaveBeenCalled(); - - b.constructor.superclass.bar.call(this); - expect(method).toHaveBeenCalled(); - }); */ - it("should support static properties", function() { expect(Klass.bla).toEqual(1); }); @@ -123,34 +106,9 @@ describe("Class", function() { foo3: 4 }); }); - - /* superclass deprecated - it("should have working superclass access with inheritance level > 2", function() { - var constructor2 = jasmine.createSpy("Klass2 constructor"), - constructor3 = jasmine.createSpy("Klass3 constructor"); - - var Klass2 = Klass.extend({ - initialize: function() { - constructor2(); - expect(Klass2.superclass).toBe(Klass.prototype); - Klass2.superclass.initialize.apply(this, arguments); - } - }); - - var Klass3 = Klass2.extend({ - initialize: function() { - constructor3(); - expect(Klass3.superclass).toBe(Klass2.prototype); - Klass3.superclass.initialize.apply(this, arguments); - } - }); - - var a = new Klass3(); - - expect(constructor3).toHaveBeenCalled(); - expect(constructor2).toHaveBeenCalled(); - expect(constructor).toHaveBeenCalled(); - }); - */ }); + + // TODO Class.include + + // TODO Class.mergeOptions }); \ No newline at end of file diff --git a/spec/suites/core/UtilSpec.js b/spec/suites/core/UtilSpec.js index 46cb8fba..09f536df 100644 --- a/spec/suites/core/UtilSpec.js +++ b/spec/suites/core/UtilSpec.js @@ -60,4 +60,18 @@ describe('Util', function() { expect(id2).not.toEqual(id); }); }); + + // TODO cancel/requestAnimFrame? + + // TODO limitExecByInterval + + // TODO formatNum + + // TODO splitWords + + // TODO setOptions + + // TODO getParamString + + // TODO template }); \ No newline at end of file