aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete/autocomplete_core.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2013-03-19 16:53:35 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2013-03-19 16:53:35 +0100
commit90135b27f896506776f3ce9fdbd27c9e957b924a (patch)
tree11591919e5083e81b8288cb979eca7fbdf3e3dd6 /tests/unit/autocomplete/autocomplete_core.js
parent4fce29e9356d7cbe2ccbdc29a391603580e852de (diff)
downloadjquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.tar.gz
jquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.zip
Widget tests: Use instance method. Also replace a few instances of $.data in widget implementations.
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_core.js')
-rw-r--r--tests/unit/autocomplete/autocomplete_core.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/autocomplete/autocomplete_core.js b/tests/unit/autocomplete/autocomplete_core.js
index 845a3b19d..a9fc1143c 100644
--- a/tests/unit/autocomplete/autocomplete_core.js
+++ b/tests/unit/autocomplete/autocomplete_core.js
@@ -99,7 +99,7 @@ test( "allow form submit on enter when menu is not active", function() {
delay: 0,
minLength: 0
});
- element.data( "ui-autocomplete" )._move = function() {
+ element.autocomplete( "instance" )._move = function() {
didMove = true;
};
element.simulate( "keydown", { keyCode: ( isKeyUp ? $.ui.keyCode.UP : $.ui.keyCode.DOWN ) } );
@@ -114,7 +114,7 @@ test( "allow form submit on enter when menu is not active", function() {
delay: 0,
minLength: 0
});
- element.data( "ui-autocomplete" )._move = function() {
+ element.autocomplete( "instance" )._move = function() {
ok( true, "repsond to arrow" );
};
element.autocomplete( "search" );
@@ -156,7 +156,7 @@ test( "ARIA", function() {
var element = $( "#autocomplete" ).autocomplete({
source: [ "java", "javascript" ]
}),
- liveRegion = element.data( "ui-autocomplete" ).liveRegion;
+ liveRegion = element.autocomplete( "instance" ).liveRegion;
equal( liveRegion.text(), "", "Empty live region on create" );