diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-10-19 15:47:13 -0400 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2013-10-19 18:53:00 -0400 |
commit | 82edd58743bd8b601a8298caf620c104b92aba0d (patch) | |
tree | 3bb8c8da506e66514461674688b92227e554aa05 /tests/unit/draggable/draggable_options.js | |
parent | 67fd40eda7a7f4a9e48afe09593c20bd0e0f9c6f (diff) | |
download | jquery-ui-82edd58743bd8b601a8298caf620c104b92aba0d.tar.gz jquery-ui-82edd58743bd8b601a8298caf620c104b92aba0d.zip |
Draggable Tests: make sure offset tests are actually testing offsets
Diffstat (limited to 'tests/unit/draggable/draggable_options.js')
-rw-r--r-- | tests/unit/draggable/draggable_options.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index ef551003d..27d53639f 100644 --- a/tests/unit/draggable/draggable_options.js +++ b/tests/unit/draggable/draggable_options.js @@ -43,7 +43,7 @@ test( "{ appendTo: 'parent' }, default", function() { equal( element.draggable( "option", "appendTo" ), "parent" ); TestHelpers.draggable.move( element, 1, 1 ); - equal( element.data( "last_dragged_parent" ), $( "#qunit-fixture" )[ 0 ] ); + equal( element.data( "last_dragged_parent" ), $( "#main" )[ 0 ] ); }); test( "{ appendTo: Element }", function() { @@ -91,12 +91,12 @@ test( "appendTo, default, switching after initialization", function() { // Move and make sure element was appended to fixture TestHelpers.draggable.move( element, 1, 1 ); - equal( element.data( "last_dragged_parent" ), $( "#qunit-fixture" )[ 0 ] ); + equal( element.data( "last_dragged_parent" ), $( "#main" )[ 0 ] ); // Move and make sure element was appended to main - element.draggable( "option", "appendTo", $( "#main" ) ); + element.draggable( "option", "appendTo", $( "#qunit-fixture" ) ); TestHelpers.draggable.move( element, 2, 2 ); - equal( element.data( "last_dragged_parent" ), $( "#main" )[ 0 ] ); + equal( element.data( "last_dragged_parent" ), $( "#qunit-fixture" )[ 0 ] ); }); test( "{ axis: false }, default", function() { |