diff options
| author | Chirayu Krishnappa | 2013-06-24 18:37:51 -0700 |
|---|---|---|
| committer | Chirayu Krishnappa | 2013-06-24 21:02:01 -0700 |
| commit | 0960cd0613d0b3501ad724885492dddc7fc4c42a (patch) | |
| tree | 8b70081f32d5275ce75d8b686494885e5ed32891 | |
| parent | cefdaf131dd373cf06907e241a88339452c51313 (diff) | |
| download | angular.js-0960cd0613d0b3501ad724885492dddc7fc4c42a.tar.bz2 | |
test($compile): fix IE specific test.
| -rw-r--r-- | test/ng/directive/booleanAttrsSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ng/directive/booleanAttrsSpec.js b/test/ng/directive/booleanAttrsSpec.js index f2ea003c..221c0411 100644 --- a/test/ng/directive/booleanAttrsSpec.js +++ b/test/ng/directive/booleanAttrsSpec.js @@ -131,15 +131,15 @@ describe('ngSrc', function() { // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need // to set the property as well to achieve the desired effect - var element = $compile('<div ng-src="some/{{id}}"></div>')($rootScope); + var element = $compile('<div ng-src="{{id}}"></div>')($rootScope); $rootScope.$digest(); - expect(element.prop('src')).toEqual('some/'); + expect(element.prop('src')).toBeUndefined(); $rootScope.$apply(function() { $rootScope.id = 1; }); - expect(element.prop('src')).toEqual('some/1'); + expect(element.prop('src')).toEqual('1'); dealoc(element); })); |
