diff options
| author | Misko Hevery | 2010-04-05 14:09:25 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-04-05 14:09:25 -0700 | 
| commit | 1c670b2a7c3f6153ea2e5047722f7151b9795b33 (patch) | |
| tree | 08d9baac79e65425db3f24fd8bb06a489d855b1f /test/widgetsSpec.js | |
| parent | 7a4b48020688060debe9cb0f9c17615d7585cbe7 (diff) | |
| download | angular.js-1c670b2a7c3f6153ea2e5047722f7151b9795b33.tar.bz2 | |
added ng:include
Diffstat (limited to 'test/widgetsSpec.js')
| -rw-r--r-- | test/widgetsSpec.js | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index 63c18700..1669aa68 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -203,6 +203,11 @@ describe("input widget", function(){  describe('ng:include', function(){    it('should include on external file', function() {      var element = jqLite('<ng:include src="myUrl"></ng:include>'); -    var scope = compile(element).$init(); +    var scope = compile(element); +    scope.$browser.xhr.expect('GET', 'myUrl').respond('hello'); +    scope.$init(); +    expect(sortedHtml(element)).toEqual('<ng:include src="myUrl" switch-instance="compiled"></ng:include>'); +    scope.$browser.xhr.flush(); +    expect(sortedHtml(element)).toEqual('<ng:include src="myUrl" switch-instance="compiled">hello</ng:include>');    });  }); | 
