mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Autocomplete: Added unit test to check for preventing value change when an unintended mouseover event (Firefox) is fired before blur. Proposed fix is in pull request 236
This commit is contained in:
parent
ce6209b4e4
commit
a63d23c314
@ -203,4 +203,20 @@ test("cancel select", function() {
|
||||
}, 50);
|
||||
});
|
||||
|
||||
test("blur without selection", function() {
|
||||
expect(1);
|
||||
var ac = $("#autocomplete").autocomplete({
|
||||
delay: 0,
|
||||
source: data
|
||||
});
|
||||
stop();
|
||||
ac.val("j").keydown();
|
||||
setTimeout(function() {
|
||||
$( ".ui-menu-item" ).first().simulate("mouseover");
|
||||
ac.simulate("keydown", { keyCode: $.ui.keyCode.TAB });
|
||||
same( ac.val(), "j" );
|
||||
start();
|
||||
}, 50);
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
Loading…
Reference in New Issue
Block a user