aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/resizable/resizable_options.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/resizable/resizable_options.js')
-rw-r--r--tests/unit/resizable/resizable_options.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/unit/resizable/resizable_options.js b/tests/unit/resizable/resizable_options.js
index 6d0390b72..36d600061 100644
--- a/tests/unit/resizable/resizable_options.js
+++ b/tests/unit/resizable/resizable_options.js
@@ -299,6 +299,26 @@ test( "grid - Resizable: can be moved when grid option is set (#9611)", function
equal( target.position().left, oldPosition.left, "compare left" );
});
+test( "grid - maintains grid with padding and border when approaching no dimensions", function() {
+ expect( 2 );
+
+ // http://bugs.jqueryui.com/ticket/10437 - Resizable: border with grid option working wrong
+ var handle = ".ui-resizable-nw",
+ target = $( "#resizable1" ).css({
+ padding: 5,
+ borderWidth: 5,
+ width: 80,
+ height: 80
+ }).resizable({
+ handles: "all",
+ grid: 50
+ });
+
+ TestHelpers.resizable.drag( handle, 50, 50 );
+ equal( target.outerWidth(), 50, "compare width" );
+ equal( target.outerHeight(), 50, "compare height" );
+});
+
test("ui-resizable-se { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() {
expect(4);