test($compile): correct the assertion to make test pass on IE11

This commit is contained in:
Igor Minar 2013-11-22 00:52:57 -08:00
parent 40647b179c
commit 84c408ce63

View file

@ -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>');
}));
});
}