fix(forms): broken tests on jQuery and ie8&9

This commit is contained in:
Misko Hevery
2011-10-12 10:58:08 -07:00
committed by Igor Minar
parent 8611ebe6a0
commit 4af4378b11
2 changed files with 15 additions and 6 deletions

View File

@@ -476,8 +476,8 @@ describe('select', function() {
scope.selected = [];
scope.$digest();
expect(select.find('option').length).toEqual(2);
expect(jqLite(select.find('option')[0]).attr('selected')).toBeFalsy();
expect(jqLite(select.find('option')[1]).attr('selected')).toBeFalsy();
expect(jqLite(select.find('option')[0]).prop('selected')).toBeFalsy();
expect(jqLite(select.find('option')[1]).prop('selected')).toBeFalsy();
scope.selected.push(scope.values[1]);
scope.$digest();