diff options
| author | Misko Hevery | 2010-04-30 12:22:07 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-04-30 12:22:07 -0700 | 
| commit | ac1d02d0658cb74ae3822e364f84809d78cda335 (patch) | |
| tree | 6c5fdbd670d758d65c4d52f2e261818ac1607f47 /test/widgetsSpec.js | |
| parent | 549ff73a9b66e718383c79ccd7c28e4f9b25632d (diff) | |
| download | angular.js-ac1d02d0658cb74ae3822e364f84809d78cda335.tar.bz2 | |
make xhr post optional
Diffstat (limited to 'test/widgetsSpec.js')
| -rw-r--r-- | test/widgetsSpec.js | 3 | 
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');      });    });  | 
