aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular-mocks.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-08 13:43:40 -0700
committerMisko Hevery2010-04-08 13:43:40 -0700
commitc4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd (patch)
tree3fc1943a4599a764aef9a41d995246bb0e48f463 /test/angular-mocks.js
parente0ad7dfcd47196d0aa9271e84b2c4ac26cfda3f4 (diff)
downloadangular.js-c4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd.tar.bz2
tests failing jstd to show cory
Diffstat (limited to 'test/angular-mocks.js')
-rw-r--r--test/angular-mocks.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/angular-mocks.js b/test/angular-mocks.js
index e10ad4e2..88552aad 100644
--- a/test/angular-mocks.js
+++ b/test/angular-mocks.js
@@ -45,6 +45,12 @@ MockBrowser.prototype = {
watchUrl: function(fn) {
this.watches.push(fn);
+ },
+
+ fireUrlWatchers: function() {
+ for(var i=0; i<this.watches.length; i++) {
+ this.watches[i](this.url);
+ }
}
};