aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorMathias Stenbom <mathias@stenbom.com>2012-11-02 09:59:46 +0100
committerScott González <scott.gonzalez@gmail.com>2012-11-05 13:16:48 -0500
commit0bff32a2b1c2273e46dc0f70bc1058ad304ebcc5 (patch)
tree475c0d845d317d9050437176c9775c9c0a0c0dc9 /tests/unit
parent6874f190611009228ea9d6901fcdd6b951c66198 (diff)
downloadjquery-ui-0bff32a2b1c2273e46dc0f70bc1058ad304ebcc5.tar.gz
jquery-ui-0bff32a2b1c2273e46dc0f70bc1058ad304ebcc5.zip
Resizable: Made handles work with complex markup. Fixes #8756 - Resizable: Complex markup for handles.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/resizable/resizable_core.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/unit/resizable/resizable_core.js b/tests/unit/resizable/resizable_core.js
index 01f15bd4b..a1ac22272 100644
--- a/tests/unit/resizable/resizable_core.js
+++ b/tests/unit/resizable/resizable_core.js
@@ -129,4 +129,24 @@ test("nw", function() {
equal( target.height(), 100, "compare height" );
});
+test("handle with complex markup (#8756)", function() {
+ expect(2);
+
+ $('#resizable1')
+ .append(
+ $('<div>')
+ .addClass("ui-resizable-handle")
+ .addClass("ui-resizable-w")
+ .append($('<div>'))
+ );
+
+ var handle = '.ui-resizable-w div', target = $('#resizable1').resizable({ handles: 'all' });
+
+ TestHelpers.resizable.drag(handle, -50);
+ equal( target.width(), 150, "compare width" );
+
+ TestHelpers.resizable.drag(handle, 50);
+ equal( target.width(), 100, "compare width" );
+});
+
})(jQuery);