aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-05-10 10:36:06 -0700
committerMisko Hevery2010-05-10 10:36:06 -0700
commitf5027cc375cf29d8a78679297d9f6bdca9567eb7 (patch)
treef415af2b615656562c1d1ac10fe9b4aab83b54c7 /test/widgetsSpec.js
parent4542716370ac52f385795f509436104a2a3501d2 (diff)
parent664f1c56876f00b885272c39f759641271eef1dc (diff)
downloadangular.js-f5027cc375cf29d8a78679297d9f6bdca9567eb7.tar.bz2
Merge branch 'master' of github.com:angular/angular.js
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index b38ca2a1..c9665f1e 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -276,9 +276,8 @@ describe("widget", function(){
scope.childScope = createScope();
scope.childScope.name = 'misko';
scope.url = 'myUrl';
- scope.$browser.xhr.expect('GET', 'myUrl').respond('{{name}}');
+ scope.$xhr.cache.data.myUrl = {value:'{{name}}'};
scope.$init();
- scope.$browser.xhr.flush();
expect(element.text()).toEqual('misko');
});
});