We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48568b4 commit 7fdd26eCopy full SHA for 7fdd26e
test/ng/directive/selectSpec.js
@@ -735,6 +735,8 @@ describe('select', function() {
735
736
it('should not update selected property of an option element on digest with no change event',
737
function() {
738
+ // ng-options="value.name for value in values"
739
+ // ng-model="selected"
740
createSingleSelect();
741
742
scope.$apply(function() {
@@ -743,6 +745,11 @@ describe('select', function() {
743
745
});
744
746
747
var options = element.find('option');
748
+
749
+ expect(scope.selected).toEqual({ name: 'A' });
750
+ expect(options.eq(0).prop('selected')).toBe(true);
751
+ expect(options.eq(1).prop('selected')).toBe(false);
752
753
var optionToSelect = options.eq(1);
754
755
expect(optionToSelect.text()).toBe('B');
0 commit comments