diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 99be8afc9f16..80788b02b460 100755 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -4297,7 +4297,7 @@ describe('$compile', function() { element = $compile('')($rootScope); $rootScope.html = $sce.trustAsHtml('
hello
'); $rootScope.$digest(); - expect(angular.lowercase(element[0].srcdoc)).toEqual('
hello
'); + expect(angular.lowercase(element.attr('srcdoc'))).toEqual('
hello
'); })); }); }