diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2012-11-24 16:23:03 -0500 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-26 12:42:44 +0100 |
commit | 0cd470b0d5f8c617e761c4a6c90aeea4e3f54128 (patch) | |
tree | 1f2823eeda613940a8f8ebb7ad775e3e2df8ed74 /tests/unit/resizable/resizable_options.js | |
parent | a68d5ca31d764a737653461cfba49debdc8ad0ba (diff) | |
download | jquery-ui-0cd470b0d5f8c617e761c4a6c90aeea4e3f54128.tar.gz jquery-ui-0cd470b0d5f8c617e761c4a6c90aeea4e3f54128.zip |
Resizable: Modified the default z-index value of resizable handles. Fixed #7960 - Dialog: Modal dialogs do not disable resizables on the page.
Diffstat (limited to 'tests/unit/resizable/resizable_options.js')
-rw-r--r-- | tests/unit/resizable/resizable_options.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/unit/resizable/resizable_options.js b/tests/unit/resizable/resizable_options.js index 4b47762ab..c8627953b 100644 --- a/tests/unit/resizable/resizable_options.js +++ b/tests/unit/resizable/resizable_options.js @@ -210,4 +210,18 @@ test("zIndex, applied to all handles", function() { }); }); +test( "zIndex, less than a modal dialog's overlay by default", function() { + expect(1); + + var resizable = $( '<div></div>' ).resizable(); + var dialog = $( '<div></div>' ).dialog( { modal: true }); + + var resizableZIndex = resizable.resizable( 'option', 'zIndex' ); + var overlayZIndex = $( '.ui-widget-overlay' ).css( 'zIndex' ); + overlayZIndex = parseInt( overlayZIndex, 10 ); + + ok( resizableZIndex < overlayZIndex, "Resizables behind a modal dialog must have a smaller z-index than the overlay so that they're not resizable. See #7960." ); + dialog.dialog( 'destroy' ); +}); + })(jQuery); |