aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/deferSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-05-22 23:05:26 -0700
committerIgor Minar2012-05-23 15:00:56 -0700
commit4511d39cc748288df70bdc258f98a8f36652e683 (patch)
tree17402bb4910b12c4b1a38778309a62addd2c947f /test/ng/deferSpec.js
parent15b8f205bb4e9797608ce440075e5149db6e6d45 (diff)
downloadangular.js-4511d39cc748288df70bdc258f98a8f36652e683.tar.bz2
feat($timeout): add $timeout service that supersedes $defer
$timeout has a better name ($defer got often confused with something related to $q) and is actually promise based with cancelation support. With this commit the $defer service is deprecated and will be removed before 1.0. Closes #704, #532
Diffstat (limited to 'test/ng/deferSpec.js')
-rw-r--r--test/ng/deferSpec.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ng/deferSpec.js b/test/ng/deferSpec.js
index 48c9e912..2e31aadb 100644
--- a/test/ng/deferSpec.js
+++ b/test/ng/deferSpec.js
@@ -5,6 +5,7 @@ describe('$defer', function() {
$provide.factory('$exceptionHandler', function(){
return jasmine.createSpy('$exceptionHandler');
});
+ $provide.value('$log', {warn: noop});
}));