diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2013-12-12 22:10:06 -0500 |
---|---|---|
committer | TJ VanToll <tj.vantoll@gmail.com> | 2014-01-15 15:38:10 -0500 |
commit | 28310ff55f062199fb2f187ea13d3561a879aea8 (patch) | |
tree | 84bfaf2266437b2357967dea5284207c71a30448 /tests/unit/draggable | |
parent | 1bbbcc723c489d7ef7d72bb62564b8f07805c41c (diff) | |
download | jquery-ui-28310ff55f062199fb2f187ea13d3561a879aea8.tar.gz jquery-ui-28310ff55f062199fb2f187ea13d3561a879aea8.zip |
Slider & Interactions: Add Windows 8 touch support
Fixes #9709
Fixes #9710
Closes gh-1152
Diffstat (limited to 'tests/unit/draggable')
-rw-r--r-- | tests/unit/draggable/draggable_core.js | 14 |
1 files changed, 14 insertions, 0 deletions
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 = $( "<div><p></p></div>" ).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 ); |