diff options
| author | Mark Otto <[email protected]> | 2012-03-10 11:23:47 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-03-10 11:23:47 -0800 |
| commit | c414e57dccf0d0177f42df10d2f36f79581563d6 (patch) | |
| tree | 59b7fdd5f757789f8d4ea58456b6b450efb337b0 /js/tests/unit | |
| parent | 305374ab1a49a1bdfbab0e52a2be218fc42f3cc0 (diff) | |
| parent | 1562381114ce1ce5dc06d311ddb6d1e0f2048a1f (diff) | |
| download | bootstrap-c414e57dccf0d0177f42df10d2f36f79581563d6.tar.xz bootstrap-c414e57dccf0d0177f42df10d2f36f79581563d6.zip | |
Merge branch '2.0.2-wip' of github.com:twitter/bootstrap into 2.0.2-wip
Conflicts:
docs/assets/bootstrap.zip
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 +}) |
