aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/BrowserTest.js2
-rw-r--r--test/angular-mocks.js5
2 files changed, 5 insertions, 2 deletions
diff --git a/test/BrowserTest.js b/test/BrowserTest.js
index 2e630172..5254840a 100644
--- a/test/BrowserTest.js
+++ b/test/BrowserTest.js
@@ -3,7 +3,7 @@ BrowserTest = TestCase('BrowserTest');
BrowserTest.prototype.testUrlWatcher = function () {
expectAsserts(2);
var location = {href:"http://server", hash:""};
- var watcher = new Browser(location);
+ var watcher = new Browser(location, {});
watcher.delay = 1;
watcher.watchUrl(function(url){
assertEquals('http://getangular.test', url);
diff --git a/test/angular-mocks.js b/test/angular-mocks.js
index 9c93f87f..e10ad4e2 100644
--- a/test/angular-mocks.js
+++ b/test/angular-mocks.js
@@ -8,7 +8,7 @@ function MockBrowser() {
var expect = expectations[method] || {};
var response = expect[url];
if (!response) {
- throw "Unexepected request for mothod '" + method + "' and url '" + url + "'.";
+ throw "Unexepected request for method '" + method + "' and url '" + url + "'.";
}
requests.push(function(){
callback(200, response);
@@ -32,6 +32,9 @@ function MockBrowser() {
}
MockBrowser.prototype = {
+ hover: function(onHover) {
+ },
+
getUrl: function(){
return this.url;
},