diff options
| author | Jacob Thornton <[email protected]> | 2012-03-08 11:39:33 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-03-08 11:39:33 -0800 |
| commit | d3721c504e7838ba3ee867d68536e6cf0b6b7f66 (patch) | |
| tree | a77223cd03ea0ae2fda5afa92edadf0ae6c6fa9d /js/tests/unit | |
| parent | bcef12dfcc8d7e0df03437589f22174042745d78 (diff) | |
| parent | 26e683f1d0b7baedd161d928501043c1a7880445 (diff) | |
| download | bootstrap-d3721c504e7838ba3ee867d68536e6cf0b6b7f66.tar.xz bootstrap-d3721c504e7838ba3ee867d68536e6cf0b6b7f66.zip | |
Merge branch '2.0.2-wip' of github.com:twitter/bootstrap into 2.0.2-wip
Diffstat (limited to 'js/tests/unit')
| -rw-r--r-- | js/tests/unit/bootstrap-typeahead.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/tests/unit/bootstrap-typeahead.js b/js/tests/unit/bootstrap-typeahead.js index 455ed415b..96ea7c45f 100644 --- a/js/tests/unit/bootstrap-typeahead.js +++ b/js/tests/unit/bootstrap-typeahead.js @@ -114,15 +114,19 @@ $(function () { source: ['aa', 'ab', 'ac'] }) , typeahead = $input.data('typeahead') + , changed = false $input.val('a') typeahead.lookup() + $input.change(function() { changed = true }); + $(typeahead.$menu.find('li')[2]).mouseover().click() equals($input.val(), 'ac', 'input value was correctly set') ok(!typeahead.$menu.is(':visible'), 'the menu was hidden') + ok(changed, 'a change event was fired') typeahead.$menu.remove() }) -})
\ No newline at end of file +}) |
