aboutsummaryrefslogtreecommitdiffstats
path: root/test/markupSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-09-21 10:28:26 +0200
committerMisko Hevery2010-09-21 10:37:12 +0200
commit0d717310fd307cfc192b87f5d825c2963db25fa1 (patch)
tree106857f2ea7cbc7e03261192db66409358032573 /test/markupSpec.js
parent9dfdac2be2e75b2f58eac2bca157b49a0baef4f6 (diff)
downloadangular.js-0d717310fd307cfc192b87f5d825c2963db25fa1.tar.bz2
fixed test for ng:src which fails on IE, since IE treats undefined src as url to the current page.
Diffstat (limited to 'test/markupSpec.js')
-rw-r--r--test/markupSpec.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/markupSpec.js b/test/markupSpec.js
index 1dd6f939..cb8ee23f 100644
--- a/test/markupSpec.js
+++ b/test/markupSpec.js
@@ -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() {