Skip to content

Commit 0d71731

Browse files
committed
fixed test for ng:src which fails on IE, since IE treats undefined src as url to the current page.
1 parent 9dfdac2 commit 0d71731

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/markupSpec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ describe("markups", function(){
5454

5555
it('should bind src', function() {
5656
compile('<img ng:src="{{url}}" />');
57-
expect(sortedHtml(element)).toEqual('<img ng:bind-attr="{"src":"{{url}}"}"></img>');
57+
scope.url = 'http://localhost/';
58+
scope.$eval();
59+
expect(sortedHtml(element)).toEqual('<img ng:bind-attr="{"src":"{{url}}"}" src="http://localhost/"></img>');
5860
});
5961

6062
it('should bind href and merge with other attrs', function() {

0 commit comments

Comments
 (0)