diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-03-23 04:12:52 +0200 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-04-17 14:51:03 -0400 |
commit | 507043c3a2c05b0421531e188dd857bda6f3fde9 (patch) | |
tree | 126791957d3adaaa7da26784dc347320996d05e8 /tests | |
parent | 9ac505b9fa747a24e5c329cde0614ec0fe49d807 (diff) | |
download | jquery-ui-507043c3a2c05b0421531e188dd857bda6f3fde9.tar.gz jquery-ui-507043c3a2c05b0421531e188dd857bda6f3fde9.zip |
Draggable: Handle containment set to false after init, and style improvements. Fixes #8962 - Containment doesn't properly update
(cherry picked from commit dc5254aa0703f9f7fd9d290c3078a5e9267160d9)
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() { |