You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
describe('showResultsOnFocus set to true',function(){
1525
-
it('should open typeahead when input is focused and input is empty string',function(){
1526
-
varelement=prepareInputEl('<div><input ng-model="result" uib-typeahead="item for item in source | filter:$viewValue" typeahead-show-results-on-focus="true"></div>');
1525
+
it('should open typeahead when input is focused and input is set and longer than min length threshold',function(){
1526
+
varelement=prepareInputEl('<div><input ng-model="result" uib-typeahead="item for item in source | filter:$viewValue" typeahead-min-length="1" typeahead-show-results-on-focus="true"></div>');
1527
1527
varinputEl=findInput(element);
1528
-
changeInputValueTo(element,'');
1528
+
changeInputValueTo(element,'ba');
1529
1529
inputEl.focus();
1530
1530
$timeout.flush();
1531
1531
$scope.$digest();
1532
1532
expect(element).toBeOpenWithActive(3,0);
1533
1533
});
1534
1534
1535
-
it('should open typeahead when input is focused and input is not empty string',function(){
1536
-
varelement=prepareInputEl('<div><input ng-model="result" uib-typeahead="item for item in source | filter:$viewValue" typeahead-show-results-on-focus="true"></div>');
1535
+
it('should not open typeahead when input is focused and input is set and not longer than min length threshold',function(){
1536
+
varelement=prepareInputEl('<div><input ng-model="result" uib-typeahead="item for item in source | filter:$viewValue" typeahead-min-length="2" typeahead-show-results-on-focus="true"></div>');
0 commit comments