test("should show menu when query entered", function () {
var $input = $('<input />').typeahead({
- data: ['aa', 'ab', 'ac']
+ source: ['aa', 'ab', 'ac']
})
, typeahead = $input.data('typeahead')
test("should hide menu when query entered", function () {
stop()
var $input = $('<input />').typeahead({
- data: ['aa', 'ab', 'ac']
+ source: ['aa', 'ab', 'ac']
})
, typeahead = $input.data('typeahead')
test("should set next item when down arrow is pressed", function () {
var $input = $('<input />').typeahead({
- data: ['aa', 'ab', 'ac']
+ source: ['aa', 'ab', 'ac']
})
, typeahead = $input.data('typeahead')
test("should set input value to selected item", function () {
var $input = $('<input />').typeahead({
- data: ['aa', 'ab', 'ac']
+ source: ['aa', 'ab', 'ac']
})
, typeahead = $input.data('typeahead')