diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-07-15 09:40:38 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-07-15 09:40:38 -0400 |
commit | 71d8f16ad4bc60d8946cf73f4b0c0bc99840e6ab (patch) | |
tree | a48489064648b2cbb59772d8a62f4fb66496ed4f /tests/unit/resizable/methods.js | |
parent | a3df6dd8a8e363a276392acd7744f7db1e75eb61 (diff) | |
parent | de4984da244289c259e8fc8d1106898908b6ffce (diff) | |
download | jquery-ui-71d8f16ad4bc60d8946cf73f4b0c0bc99840e6ab.tar.gz jquery-ui-71d8f16ad4bc60d8946cf73f4b0c0bc99840e6ab.zip |
Merge branch 'master' into datepicker
Diffstat (limited to 'tests/unit/resizable/methods.js')
-rw-r--r-- | tests/unit/resizable/methods.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/unit/resizable/methods.js b/tests/unit/resizable/methods.js new file mode 100644 index 000000000..a7056a105 --- /dev/null +++ b/tests/unit/resizable/methods.js @@ -0,0 +1,21 @@ +define( [ + "jquery", + "ui/resizable" +], function( $ ) { + +module( "resizable: methods" ); + +test( "disable", function( assert ) { + expect( 5 ); + + var element = $( "#resizable1" ).resizable({ disabled: false }), + chainable = element.resizable( "disable" ); + + assert.lacksClasses( element.resizable( "widget" ), "ui-state-disabled" ); + ok( !element.resizable( "widget" ).attr( "aria-disabled" ), "element does not get aria-disabled" ); + assert.hasClasses( element.resizable( "widget" ), "ui-resizable-disabled" ); + equal( element.resizable( "option", "disabled" ), true, "disabled option setter" ); + equal( chainable, element, "disable is chainable" ); +}); + +} ); |