aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-10-31 17:28:00 -0400
committerScott González <scott.gonzalez@gmail.com>2011-10-31 17:28:00 -0400
commite31adf039b4adb07b8878435beceaae1a6532d47 (patch)
treea1fbf35961c386f7a2306fe715c6988dcee7b850 /tests/unit/tooltip
parent79105eeb5649ad650073d5603d9d50759e979e99 (diff)
downloadjquery-ui-e31adf039b4adb07b8878435beceaae1a6532d47.tar.gz
jquery-ui-e31adf039b4adb07b8878435beceaae1a6532d47.zip
Tests (Simulate): Added focus and blur support.
Diffstat (limited to 'tests/unit/tooltip')
-rw-r--r--tests/unit/tooltip/tooltip_events.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/tooltip/tooltip_events.js b/tests/unit/tooltip/tooltip_events.js
index 963acaf59..99e1fbd79 100644
--- a/tests/unit/tooltip/tooltip_events.js
+++ b/tests/unit/tooltip/tooltip_events.js
@@ -59,7 +59,7 @@ asyncTest( "mixed events", function() {
element.one( "tooltipopen", function( event ) {
same( event.originalEvent.type, "focusin" );
});
- element[0].focus();
+ element.simulate( "focus" );
element.one( "tooltipopen", function() {
ok( false, "open triggered while already open" );
@@ -77,7 +77,7 @@ asyncTest( "mixed events", function() {
same( event.originalEvent.type, "blur" );
start();
});
- element[0].blur();
+ element.simulate( "blur" );
});
}( jQuery ) );