diff options
Diffstat (limited to 'test/ng')
| -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>'); })); }); } |
