diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-03-23 04:12:52 +0200 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2013-03-23 16:48:19 -0400 |
commit | dc5254aa0703f9f7fd9d290c3078a5e9267160d9 (patch) | |
tree | 0baaa8e267381f9928dd2f9db14043a03b765ccd /tests | |
parent | f306a826a4d3b4c36c3f86cb5feeee23bb0db4c3 (diff) | |
download | jquery-ui-dc5254aa0703f9f7fd9d290c3078a5e9267160d9.tar.gz jquery-ui-dc5254aa0703f9f7fd9d290c3078a5e9267160d9.zip |
Draggable: Handle containment set to false after init, and style improvements. Fixes #8962 - Containment doesn't properly update
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/draggable/draggable_options.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index f4fca0b2e..bf47b4354 100644 --- a/tests/unit/draggable/draggable_options.js +++ b/tests/unit/draggable/draggable_options.js @@ -378,7 +378,7 @@ test( "containment, account for border", function() { }); test( "containment, default, switching after initialization", function() { - expect( 2 ); + expect( 3 ); var element = $( "#draggable1" ).draggable({ containment: false }); @@ -393,9 +393,8 @@ test( "containment, default, switching after initialization", function() { TestHelpers.draggable.testDrag( element, element, -100, -100, 0, 0 ); - // TODO: Switching back to false does not update to false - // element.draggable( "option", "containment", false ); - // TestHelpers.draggable.testDrag( element, element, -100, -100, -100, -100 ); + element.draggable( "option", "containment", false ); + TestHelpers.draggable.testDrag( element, element, -100, -100, -100, -100 ); }); test( "{ cursor: 'auto' }, default", function() { |