2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-12-23 03:18:55 +00:00

Set width of the input field so that auto width test can pass.

This commit is contained in:
Tomas Kirda 2014-08-17 16:07:33 -05:00
parent a9e79277fb
commit 3cb2fc6203

View File

@ -473,8 +473,11 @@ describe('Autocomplete', function () {
}); });
input.val('Jam'); input.val('Jam');
input.width(100);
instance = input.autocomplete(); instance = input.autocomplete();
instance.onValueChange(); instance.onValueChange();
width = $(instance.suggestionsContainer).width(); width = $(instance.suggestionsContainer).width();
expect(width).toBeGreaterThan(0); expect(width).toBeGreaterThan(0);