From 28310ff55f062199fb2f187ea13d3561a879aea8 Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Thu, 12 Dec 2013 22:10:06 -0500 Subject: Slider & Interactions: Add Windows 8 touch support Fixes #9709 Fixes #9710 Closes gh-1152 --- tests/unit/draggable/draggable_core.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/unit/draggable') diff --git a/tests/unit/draggable/draggable_core.js b/tests/unit/draggable/draggable_core.js index c9cdde260..7df0969b1 100644 --- a/tests/unit/draggable/draggable_core.js +++ b/tests/unit/draggable/draggable_core.js @@ -273,4 +273,18 @@ asyncTest( "#4261: active element should blur when mousing down on a draggable", }); }); +test( "ui-draggable-handle assigned to appropriate element", function() { + expect( 4 ); + + var element = $( "

" ).appendTo( "#qunit-fixture" ).draggable(); + ok( element.hasClass( "ui-draggable-handle" ), "handle is element by default" ); + + element.draggable( "option", "handle", "p" ); + ok( !element.hasClass( "ui-draggable-handle" ), "removed from element" ); + ok( element.find( "p" ).hasClass( "ui-draggable-handle" ), "added to handle" ); + + element.draggable( "destroy" ); + ok( !element.find( "p" ).hasClass( "ui-draggable-handle" ), "removed in destroy()" ); +}); + })( jQuery ); -- cgit v1.2.3