Permalink
Browse files

Removed unused qunit_setup

  • Loading branch information...
1 parent c499fe9 commit ed6487a801df136bfa8ecbbc0204ccea015a1ca1 @rmm5t committed Mar 6, 2013
Showing with 0 additions and 61 deletions.
  1. +0 −23 test/qunit_setup.coffee
  2. +0 −38 test/qunit_setup.js
View
@@ -1,23 +0,0 @@
-setupFn = -> null
-window.setup = (fn) ->
- setupFn = fn
-window.moreSetup = (fn) ->
- origSetup = setupFn
- setup ->
- origSetup.call(this)
- fn.call(this)
-window.clearSetup = ->
- setup -> null
-
-originalModule = window.module
-window.module = (description) ->
- clearSetup()
- originalModule(description)
-
-originalTest = window.test
-window.test = (description, testFn) ->
- setupSnapshot = setupFn
- originalTest description, ->
- context = {}
- setupSnapshot.call(context)
- testFn.call(context)
View
@@ -1,38 +0,0 @@
-(function() {
- var originalModule, originalTest, setupFn;
- setupFn = function() {
- return null;
- };
- window.setup = function(fn) {
- return (setupFn = fn);
- };
- window.moreSetup = function(fn) {
- var origSetup;
- origSetup = setupFn;
- return setup(function() {
- origSetup.call(this);
- return fn.call(this);
- });
- };
- window.clearSetup = function() {
- return setup(function() {
- return null;
- });
- };
- originalModule = window.module;
- window.module = function(description) {
- clearSetup();
- return originalModule(description);
- };
- originalTest = window.test;
- window.test = function(description, testFn) {
- var setupSnapshot;
- setupSnapshot = setupFn;
- return originalTest(description, function() {
- var context;
- context = {};
- setupSnapshot.call(context);
- return testFn.call(context);
- });
- };
-}).call(this);

0 comments on commit ed6487a

Please sign in to comment.