Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 84c408c

Browse files
committed
test($compile): correct the assertion to make test pass on IE11
1 parent 40647b1 commit 84c408c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/ng/compileSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4297,7 +4297,7 @@ describe('$compile', function() {
42974297
element = $compile('<iframe srcdoc="{{html}}"></iframe>')($rootScope);
42984298
$rootScope.html = $sce.trustAsHtml('<div onclick="">hello</div>');
42994299
$rootScope.$digest();
4300-
expect(angular.lowercase(element[0].srcdoc)).toEqual('<div onclick="">hello</div>');
4300+
expect(angular.lowercase(element.attr('srcdoc'))).toEqual('<div onclick="">hello</div>');
43014301
}));
43024302
});
43034303
}

0 commit comments

Comments
 (0)