Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit caac012

Browse files
committed
fix tests for IE9
1 parent 81dd082 commit caac012

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/ng/directive/ngOptionsSpec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -763,16 +763,16 @@ describe('ngOptions', function() {
763763
scope.selected = scope.values[1];
764764
scope.$digest();
765765

766-
expect(options[1].getAttribute('selected')).toBe(null);
766+
expect(options[1].hasAttribute('selected')).toBe(false);
767767
expect(options[2].getAttribute('selected')).toBe('selected');
768768

769769
scope.selected = 'no match';
770770
scope.$digest();
771771

772772
expect(options[0].selected).toBe(true);
773773
expect(options[0].getAttribute('selected')).toBe('selected');
774-
expect(options[1].getAttribute('selected')).toBe(null);
775-
expect(options[2].getAttribute('selected')).toBe(null);
774+
expect(options[1].hasAttribute('selected')).toBe(false);
775+
expect(options[2].hasAttribute('selected')).toBe(false);
776776
});
777777

778778
describe('disableWhen expression', function() {
@@ -1445,7 +1445,7 @@ describe('ngOptions', function() {
14451445
expect(options[0].selected).toBe(true);
14461446
expect(options[0].getAttribute('selected')).toBe('selected');
14471447
expect(options[2].selected).toBe(false);
1448-
expect(options[2].getAttribute('selected')).toBe(null);
1448+
expect(options[2].hasAttribute('selected')).toBe(false);
14491449
});
14501450

14511451
});

0 commit comments

Comments
 (0)