aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/ApplicationSpec.js
diff options
context:
space:
mode:
authorDiPeng2011-06-24 12:26:44 -0700
committerIgor Minar2011-07-18 00:04:14 -0700
commit7974e7eb5f3821b77691819683f9aa37f3c37473 (patch)
tree72eea1f97eb3d7f7d79774a8ed831fdc60dc448b /test/scenario/ApplicationSpec.js
parentf9b4c9da648f81aef1fbee41d24822e420eb56f9 (diff)
downloadangular.js-7974e7eb5f3821b77691819683f9aa37f3c37473.tar.bz2
refactor($browser): hide startPoll and poll methods
Breaks $browser.poll() method is moved inline to $browser.startpoll() Breaks $browser.startpoll() method is made private Refactor tests to reflect updated browser API Closes #387
Diffstat (limited to 'test/scenario/ApplicationSpec.js')
-rw-r--r--test/scenario/ApplicationSpec.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/scenario/ApplicationSpec.js b/test/scenario/ApplicationSpec.js
index 1cab11ec..8c31726f 100644
--- a/test/scenario/ApplicationSpec.js
+++ b/test/scenario/ApplicationSpec.js
@@ -121,9 +121,6 @@ describe('angular.scenario.Application', function() {
};
testWindow.angular.service.$browser = function() {
return {
- poll: function() {
- polled = true;
- },
notifyWhenNoOutstandingRequests: function(fn) {
handlers.push(fn);
}
@@ -137,7 +134,6 @@ describe('angular.scenario.Application', function() {
expect($document).toBeDefined();
expect($document[0].className).toEqual('test-foo');
});
- expect(polled).toBeTruthy();
expect(handlers.length).toEqual(1);
handlers[0]();
});