Skip to content
Permalink
Browse files

Autocomplete tests: Fixed handling of cached ajax requests in IE.

  • Loading branch information
scottgonzalez committed Aug 3, 2011
1 parent d912c30 commit 6867e0b5517d4664e309652f807011ea350d1f67
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/unit/autocomplete/autocomplete_options.js
@@ -117,7 +117,6 @@ function sourceTest( source, async ) {
source: source
}),
menu = element.autocomplete( "widget" );
element.val( "ja" ).autocomplete( "search" );
function result() {
equal( menu.find( ".ui-menu-item" ).text(), "javajavascript" );
element.autocomplete( "destroy" );
@@ -128,7 +127,9 @@ function sourceTest( source, async ) {
if ( async ) {
stop();
$( document ).one( "ajaxStop", result );
} else {
}
element.val( "ja" ).autocomplete( "search" );
if ( !async ) {
result();
}
}

0 comments on commit 6867e0b

Please sign in to comment.
You can’t perform that action at this time.