fixed test for ng:src which fails on IE, since IE treats undefined src as url to the current page.

This commit is contained in:
Misko Hevery 2010-09-21 10:28:26 +02:00
parent 9dfdac2be2
commit 0d717310fd

View file

@ -54,7 +54,9 @@ describe("markups", function(){
it('should bind src', function() {
compile('<img ng:src="{{url}}" />');
expect(sortedHtml(element)).toEqual('<img ng:bind-attr="{"src":"{{url}}"}"></img>');
scope.url = 'http://localhost/';
scope.$eval();
expect(sortedHtml(element)).toEqual('<img ng:bind-attr="{"src":"{{url}}"}" src="http://localhost/"></img>');
});
it('should bind href and merge with other attrs', function() {