mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-19 20:01:52 +00:00
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:
parent
9dfdac2be2
commit
0d717310fd
1 changed files with 3 additions and 1 deletions
|
|
@ -54,7 +54,9 @@ describe("markups", function(){
|
||||||
|
|
||||||
it('should bind src', function() {
|
it('should bind src', function() {
|
||||||
compile('<img ng:src="{{url}}" />');
|
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() {
|
it('should bind href and merge with other attrs', function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue