aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2015-01-27 22:08:05 -0500
committerScott González <scott.gonzalez@gmail.com>2015-02-09 12:06:02 -0500
commit0a0db09378fb21ef37fa261958d89f7f1a21ba76 (patch)
treeacc4200a2c7754fc5d156beb2a8af8492158a783 /tests/unit
parent105f4a5cb0b96efe77ac4380b483c08637e23a26 (diff)
downloadjquery-ui-0a0db09378fb21ef37fa261958d89f7f1a21ba76.tar.gz
jquery-ui-0a0db09378fb21ef37fa261958d89f7f1a21ba76.zip
Resizable: correct width when grid approaches zero
Fixes #10590 (cherry picked from commit 9493839f23b6ff71aacb9cb8fe8fde6c8d0ecd61)
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/resizable/resizable_options.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/resizable/resizable_options.js b/tests/unit/resizable/resizable_options.js
index 9b364f5d3..2b66fda3e 100644
--- a/tests/unit/resizable/resizable_options.js
+++ b/tests/unit/resizable/resizable_options.js
@@ -311,12 +311,12 @@ test( "grid - maintains grid with padding and border when approaching no dimensi
height: 80
}).resizable({
handles: "all",
- grid: 50
+ grid: [ 50, 12 ]
});
TestHelpers.resizable.drag( handle, 50, 50 );
equal( target.outerWidth(), 50, "compare width" );
- equal( target.outerHeight(), 50, "compare height" );
+ equal( target.outerHeight(), 52, "compare height" );
});
test("ui-resizable-se { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() {