summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* add testDavid Knaack2016-09-261-0/+8
|
* Loop around options using for next or previousdhoko2016-08-162-4/+4
|
* Consistent quotes styleVladislav Zarakovsky2016-06-246-9/+9
|
* Emit close reason with awesomplete-close eventsJim Fitzpatrick2016-06-226-7/+23
| | | | | | | | | Emit a reason when firing `awesomplete-close` events to provide transparency to attached event listeners regarding the circumstance in which the close was triggered. Reasons include `blur`, `esc`, `submit`, `select`, and `nomatches`. Closes #16897
* Return early from close if not openJim Fitzpatrick2016-06-211-0/+8
| | | | | | | If the popup is already in a closed state, return early from `Awesomplete.prototype.close` so as to guarantee that when `awesomplete-close` events get triggered, the popup *was* actually closed.
* Pass suggestion item to awesomplete-selectcomplete and awesomplete-highlight ↵Vladislav Zarakovsky2016-03-132-2/+10
| | | | events
* Remove redundant evt.data, it's same at evt.textVladislav Zarakovsky2016-03-121-1/+0
| | | | Agreed in https://github.com/LeaVerou/awesomplete/issues/16821#issuecomment-185901377
* Support list with separate label/value via <datalist> or <ul>Vladislav Zarakovsky2016-03-121-6/+29
|
* Separate label/value for each suggestion on the list.Vladislav Zarakovsky2016-03-124-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It is now possible to show a suggestion label in completer, but insert a suggestion value into the input instead. In addition to String as before, each list item now can also be: - a `{ label, value }` Object - a `[ label, value ]` Array To show full country name in completer, but insert country code into the input you can use these items: - `{ label: "United States", value: "US" }` - `[ "United States", "US" ]` Despite this data format change, old code will continue to work as before. This is taken care by `Suggestion()`. It uses `label` property automatically when string is expected anywhere in the API. One known issue is that accessing suggestion's characters by index won't work with old API. It's easy to fix though. Instead of `item[idx]` use `item.value[idx]` or `item.label[idx]` directly. In addition to default support for String/Object/Array items, we also add `data` method, which can be used to support any additional custom item formats and to generate data dynamically, as in changed Email example. The only thing you need to do in this case is to return item in any of String/Array/Object formats supported by default.
* Revert "Changed event property name: origin -> originalTarget"Vladislav Zarakovsky2016-02-171-1/+1
| | | | This reverts commit 1f86aaf981910686e11ffea47c24c8838a17d7d8.
* Fix typo in testVladislav Zarakovsky2016-02-171-1/+1
|
* Changed event property name: origin -> originalTargetVladislav Zarakovsky2016-02-071-1/+1
|
* Add item data to awesomplete-select eventVladislav Zarakovsky2016-02-011-0/+1
|
* Tests for Awesomplete.ITEM and Awesomplete.REPLACEVladislav Zarakovsky2016-01-303-4/+65
|
* Big tests cleanupVladislav Zarakovsky2016-01-2820-257/+114
|
* Pass origin element to awesomplete-select instead of eventVladislav Zarakovsky2016-01-231-2/+2
|
* Fix #16808. Input loses focus if item selected with mouse.Vladislav Zarakovsky2016-01-081-1/+2
|
* Fix tests for new featureVladislav Zarakovsky2015-12-282-6/+7
|
* Tests for merged #16791 Don't select items on mouse right-clickVladislav Zarakovsky2015-12-051-13/+24
|
* Covered some missed branchesVladislav Zarakovsky2015-11-254-3/+27
|
* Simplify tests by inlining and using $.spyOnEvent helperVladislav Zarakovsky2015-11-256-42/+31
|
* Fix tests run in FirefoxVladislav Zarakovsky2015-11-251-0/+4
|
* keydown event testsVladislav Zarakovsky2015-11-242-0/+64
|
* form submit event testsVladislav Zarakovsky2015-11-242-0/+23
|
* mousedown event testsVladislav Zarakovsky2015-11-241-0/+45
|
* input event testsVladislav Zarakovsky2015-11-241-0/+17
|
* blur event testsVladislav Zarakovsky2015-11-241-0/+17
|
* awesomplete.selected testsVladislav Zarakovsky2015-11-241-0/+41
|
* awesomplete.opened testsVladislav Zarakovsky2015-11-241-0/+26
|
* awesomplete.evaluate testsVladislav Zarakovsky2015-11-241-0/+57
|
* awesomplete.select testsVladislav Zarakovsky2015-11-241-0/+130
|
* awesomplete.goto testsVladislav Zarakovsky2015-11-241-0/+66
|
* awesomplete.previous testsVladislav Zarakovsky2015-11-241-0/+57
|
* awesomplete.next testsVladislav Zarakovsky2015-11-242-0/+73
|
* awesomplete.open testsVladislav Zarakovsky2015-11-241-0/+53
|
* awesomplete.close testsVladislav Zarakovsky2015-11-242-2/+39
|
* Awesomplete.$.regExpEscape testsVladislav Zarakovsky2015-11-241-0/+38
|
* Awesomplete.$.fire testsVladislav Zarakovsky2015-11-241-0/+60
|
* Awesomplete.$$ testsVladislav Zarakovsky2015-11-242-0/+53
|
* Awesomplete.$ testsVladislav Zarakovsky2015-11-241-0/+62
|
* Awesomplete.$.create testsVladislav Zarakovsky2015-11-241-0/+102
|
* Awesomplete.$.bind testsVladislav Zarakovsky2015-11-241-0/+61
|
* Awesomplete.SORT_BYLENGTH testsVladislav Zarakovsky2015-11-241-0/+51
|
* Awesomplete.FILTER_STARTSWITH testsVladislav Zarakovsky2015-11-241-0/+60
|
* Awesomplete.FILTER_CONTAINS testsVladislav Zarakovsky2015-11-241-0/+60
|
* Awesomplete.all testsVladislav Zarakovsky2015-11-242-0/+23
|
* Html modifications testsVladislav Zarakovsky2015-11-242-0/+61
|
* List initialization testsVladislav Zarakovsky2015-11-242-0/+95
|
* Constructor options testsVladislav Zarakovsky2015-11-243-0/+107
|
* Set correct fixtures pathVladislav Zarakovsky2015-11-241-0/+1
|
* forget to add shared fileHerre Groen2015-10-291-0/+45
|
* expand test-suiteHerre Groen2015-10-291-21/+63
|
* Flatten tests/ directory and rename to test/ (common convention)Vladislav Zarakovsky2015-05-191-0/+75