From 717f24feb43cb71538a7c07e4aa013c916640006 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 22 Jul 2013 13:59:21 -0700 Subject: chore(dump): remove dead code This code is not being used any more and the test is now failing due to Karma changes. Karma used to expose window.dump but that changed recently and that's why our build is now failing. I'm removing the code and test, but we still need to figure out how to route window.dump through angular.mock.dump, but that will have to be a separate commit. --- src/ngMock/angular-mocks.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'src/ngMock/angular-mocks.js') diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index eb7868c9..3024a4c9 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -859,7 +859,7 @@ angular.mock.dump = function(object) { * * Now we setup the mock backend and create the test specs. - * + *
     // testing controller
     describe('MyController', function() {
@@ -915,7 +915,7 @@ angular.mock.dump = function(object) {
        it('should send auth header', function() {
          var controller = createController();
          $httpBackend.flush();
-         
+
          $httpBackend.expectPOST('/add-msg.py', undefined, function(headers) {
            // check if the header was send, if it wasn't the expectation won't
            // match the request and the test will fail
@@ -1742,22 +1742,6 @@ angular.mock.clearDataCache = function() {
 };
 
 
-window.jstestdriver && (function(window) {
-  /**
-   * Global method to output any number of objects into JSTD console. Useful for debugging.
-   */
-  window.dump = function() {
-    var args = [];
-    angular.forEach(arguments, function(arg) {
-      args.push(angular.mock.dump(arg));
-    });
-    jstestdriver.console.log.apply(jstestdriver.console, args);
-    if (window.console) {
-      window.console.log.apply(window.console, args);
-    }
-  };
-})(window);
-
 
 (window.jasmine || window.mocha) && (function(window) {
 
-- 
cgit v1.2.3