aboutsummaryrefslogtreecommitdiffstats
path: root/test/markupSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-21 12:50:05 -0700
committerMisko Hevery2010-04-21 12:50:05 -0700
commite78405f6ed82fcd2e9a1cdffb7f1103d52752623 (patch)
tree1854bda08d6aa5e3c9e62056388eb7b83236f02b /test/markupSpec.js
parent22d93e0a3bc2a6dc0f64c63c68bc8f8489ea9068 (diff)
downloadangular.js-e78405f6ed82fcd2e9a1cdffb7f1103d52752623.tar.bz2
more if tests pass
Diffstat (limited to 'test/markupSpec.js')
-rw-r--r--test/markupSpec.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/markupSpec.js b/test/markupSpec.js
index a1112490..cfc0f899 100644
--- a/test/markupSpec.js
+++ b/test/markupSpec.js
@@ -43,13 +43,14 @@ describe("markups", function(){
});
it('should populate value attribute on OPTION', function(){
- compile('<select name="x"><option>A</option></select>');
- expect(element.html()).toEqual('<option value="A">A</option>');
+ compile('<select name="x"><option>a</option></select>');
+ expect(sortedHtml(element)).toEqual('<select name="x"><option value="a">a</option></select>');
});
it('should process all bindings when we have leading space', function(){
compile('<a> {{a}}<br/>{{b}}</a>');
- expect(sortedHtml(scope.$element)).toEqual('<a> <span ng-bind="a"></span><br></br><span ng-bind="b"></span></a>');
+ var space = msie ? '<span>' + NBSP + '</span>': ' ';
+ expect(sortedHtml(scope.$element)).toEqual('<a>' + space + '<span ng-bind="a"></span><br></br><span ng-bind="b"></span></a>');
});
});