diff options
| author | Igor Minar | 2013-11-22 00:52:57 -0800 |
|---|---|---|
| committer | Igor Minar | 2013-11-22 00:52:57 -0800 |
| commit | 84c408ce63859e81fb4e900683edcc0cb8188890 (patch) | |
| tree | 2abaa71d3a8159f8037d0826b9fbcc46c245c123 | |
| parent | 40647b179c473f3f470bb1b3237d6f006269582f (diff) | |
| download | angular.js-84c408ce63859e81fb4e900683edcc0cb8188890.tar.bz2 | |
test($compile): correct the assertion to make test pass on IE11
| -rwxr-xr-x | test/ng/compileSpec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 99be8afc..80788b02 100755 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -4297,7 +4297,7 @@ describe('$compile', function() { element = $compile('<iframe srcdoc="{{html}}"></iframe>')($rootScope); $rootScope.html = $sce.trustAsHtml('<div onclick="">hello</div>'); $rootScope.$digest(); - expect(angular.lowercase(element[0].srcdoc)).toEqual('<div onclick="">hello</div>'); + expect(angular.lowercase(element.attr('srcdoc'))).toEqual('<div onclick="">hello</div>'); })); }); } |
