diff options
| author | Misko Hevery | 2010-04-08 13:43:40 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-08 13:43:40 -0700 |
| commit | c4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd (patch) | |
| tree | 3fc1943a4599a764aef9a41d995246bb0e48f463 /test/angular-mocks.js | |
| parent | e0ad7dfcd47196d0aa9271e84b2c4ac26cfda3f4 (diff) | |
| download | angular.js-c4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd.tar.bz2 | |
tests failing jstd to show cory
Diffstat (limited to 'test/angular-mocks.js')
| -rw-r--r-- | test/angular-mocks.js | 6 |
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); + } } }; |
