jquery-destroy.js 501 B

1234567891011121314151617
  1. /* globals $ */
  2. QUnit.test( 'destroy', function( assert ) {
  3. var done = assert.async();
  4. var $draggie = $('.test--destroy .draggie').draggabilly();
  5. var draggieElem = $draggie[0];
  6. setTimeout( function() {
  7. $draggie.draggabilly('destroy');
  8. assert.ok( true, 'draggie destroyed' );
  9. assert.ok( !draggieElem.style.left, 'no style left' );
  10. assert.ok( !draggieElem.style.top, 'no style top' );
  11. assert.ok( !draggieElem.style.position, 'no style position' );
  12. done();
  13. } );
  14. } );