aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/mocks.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-08 17:40:52 -0800
committerMisko Hevery2011-11-14 20:31:15 -0800
commit9c0639437607a4fcea379bbaf610600d05d8a9b7 (patch)
tree1ae90d93d0139f7791487fe814360904254d39cb /test/scenario/mocks.js
parent085e3c611fd0cd48757702c50c67b551a00a0d38 (diff)
downloadangular.js-9c0639437607a4fcea379bbaf610600d05d8a9b7.tar.bz2
chore(scenario tests): make scenario tests pass again
Diffstat (limited to 'test/scenario/mocks.js')
-rw-r--r--test/scenario/mocks.js16
1 files changed, 1 insertions, 15 deletions
diff --git a/test/scenario/mocks.js b/test/scenario/mocks.js
index 2db8577a..e135390f 100644
--- a/test/scenario/mocks.js
+++ b/test/scenario/mocks.js
@@ -4,32 +4,18 @@ angular.scenario.testing = angular.scenario.testing || {};
angular.scenario.testing.MockAngular = function() {
this.reset();
- this.service = this;
+ this.element = jqLite;
};
angular.scenario.testing.MockAngular.prototype.reset = function() {
this.log = [];
};
-angular.scenario.testing.MockAngular.prototype.element = function(e) {
- return jqLite(e);
-};
-
-angular.scenario.testing.MockAngular.prototype.$browser = function() {
- this.log.push('$brower()');
- return this;
-};
-
angular.scenario.testing.MockAngular.prototype.poll = function() {
this.log.push('$brower.poll()');
return this;
};
-angular.scenario.testing.MockAngular.prototype.notifyWhenNoOutstandingRequests = function(fn) {
- this.log.push('$brower.notifyWhenNoOutstandingRequests()');
- fn();
-};
-
angular.scenario.testing.MockRunner = function() {
this.listeners = [];
};