aboutsummaryrefslogtreecommitdiffstats
path: root/test/BinderTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/BinderTest.js')
-rw-r--r--test/BinderTest.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/BinderTest.js b/test/BinderTest.js
index 1b1201fa..f38383ae 100644
--- a/test/BinderTest.js
+++ b/test/BinderTest.js
@@ -407,6 +407,10 @@ BinderTest.prototype.testBindClass = function() {
BinderTest.prototype.testBindClassEvenOdd = function() {
var x = this.compile('<div><div ng:repeat="i in [0,1]" ng:class-even="\'e\'" ng:class-odd="\'o\'"/></div>');
x.scope.$eval();
+ var d1 = jqLite(x.node[0].childNodes[1]);
+ var d2 = jqLite(x.node[0].childNodes[2]);
+ expect(d1.hasClass('o')).toBeTruthy();
+ expect(d2.hasClass('e')).toBeTruthy();
assertEquals(
'<div><#comment></#comment>' +
'<div class="o" ng:class-even="\'e\'" ng:class-odd="\'o\'" ng:repeat-index="0"></div>' +
@@ -472,13 +476,6 @@ BinderTest.prototype.testRepeaterShouldBindInputsDefaults = function () {
assertEquals("misko", c.scope.$eval('items[1].name'));
};
-BinderTest.prototype.testRepeaterShouldCreateArray = function () {
- var c = this.compile('<input value="123" name="item.name" ng:repeat="item in items">');
- c.scope.$eval();
-
- assertEquals(0, c.scope.$get('items').length);
-};
-
BinderTest.prototype.testShouldTemplateBindPreElements = function () {
var c = this.compile('<pre>Hello {{name}}!</pre>');
c.scope.$set("name", "World");