diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2015-02-17 16:11:58 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2015-03-04 23:04:07 +0100 |
commit | 666f051c3a7c0313acacad0255ab8a45697777c3 (patch) | |
tree | ce60522e6bd237ca14ae41270e6e6159190593e5 /tests/unit/autocomplete/autocomplete_options.js | |
parent | 19783fd3e6a6e6e02a2030028e8820076c3b1295 (diff) | |
download | jquery-ui-666f051c3a7c0313acacad0255ab8a45697777c3.tar.gz jquery-ui-666f051c3a7c0313acacad0255ab8a45697777c3.zip |
Tests: Reduce timeouts to optimize testsuite runtime
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_options.js')
-rw-r--r-- | tests/unit/autocomplete/autocomplete_options.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/autocomplete/autocomplete_options.js b/tests/unit/autocomplete/autocomplete_options.js index 8215dbe61..4b4957222 100644 --- a/tests/unit/autocomplete/autocomplete_options.js +++ b/tests/unit/autocomplete/autocomplete_options.js @@ -102,7 +102,7 @@ asyncTest( "delay", function() { expect( 2 ); var element = $( "#autocomplete" ).autocomplete({ source: data, - delay: 50 + delay: 25 }), menu = element.autocomplete( "widget" ); element.val( "ja" ).keydown(); @@ -112,7 +112,7 @@ asyncTest( "delay", function() { setTimeout(function() { ok( menu.is( ":visible" ), "menu is open after delay" ); start(); - }, 100 ); + }, 50 ); }); asyncTest( "disabled", function() { @@ -133,7 +133,7 @@ asyncTest( "disabled", function() { setTimeout(function() { ok( menu.is( ":hidden" ) ); start(); - }, 50 ); + }); }); test( "minLength", function() { @@ -158,7 +158,7 @@ asyncTest( "minLength, exceed then drop below", function() { equal( req.term, "12", "correct search term" ); setTimeout(function() { res([ "item" ]); - }, 1 ); + }); } }), menu = element.autocomplete( "widget" ); @@ -172,7 +172,7 @@ asyncTest( "minLength, exceed then drop below", function() { setTimeout(function() { ok( menu.is( ":hidden" ), "menu is hidden after searches" ); start(); - }, 50 ); + }); }); test( "minLength, exceed then drop below then exceed", function() { |