diff options
author | Felix Nagel <info@felixnagel.com> | 2017-08-26 13:08:14 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2017-08-26 13:08:14 +0200 |
commit | 1b885ff76899fb70cce28371968d314ea74b7d7a (patch) | |
tree | 1a3a19be9d874f9daffd1238950c073ec086ffc2 /tests/unit/resizable | |
parent | 2b611bad90fa6f19e3bf02912c6cd5c08903c993 (diff) | |
parent | 74f8a0ac952f6f45f773312292baef1c26d81300 (diff) | |
download | jquery-ui-datepicker.tar.gz jquery-ui-datepicker.zip |
Merge branch 'master' into datepickerdatepicker
# Conflicts:
# ui/i18n/datepicker-pt.js
Diffstat (limited to 'tests/unit/resizable')
-rw-r--r-- | tests/unit/resizable/options.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/unit/resizable/options.js b/tests/unit/resizable/options.js index 4080bac0e..81206abf8 100644 --- a/tests/unit/resizable/options.js +++ b/tests/unit/resizable/options.js @@ -434,8 +434,10 @@ QUnit.test( "zIndex, applied to all handles", function( assert ) { } ); QUnit.test( "setOption handles", function( assert ) { - assert.expect( 15 ); + assert.expect( 19 ); + // https://bugs.jqueryui.com/ticket/3423 + // https://bugs.jqueryui.com/ticket/15084 var target = $( "<div></div>" ).resizable(), target2 = $( "<div>" + "<div class='ui-resizable-handle ui-resizable-e'></div>" + @@ -470,6 +472,12 @@ QUnit.test( "setOption handles", function( assert ) { target2.resizable( "option", "handles", "e, s, w" ); checkHandles( target2, [ "e", "s", "w" ] ); + + target.resizable( "destroy" ); + checkHandles( target, [ ] ); + + target2.resizable( "destroy" ); + checkHandles( target2, [ "e", "w" ] ); } ); QUnit.test( "alsoResize + containment", function( assert ) { |