From 0a279c243d9c38c14328a6eda44b2de9307712d9 Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Fri, 6 Jun 2008 20:37:32 +0000 Subject: [PATCH] Added resizable test for wrapped elements --- ui/tests/images/test.jpg | Bin 0 -> 915 bytes ui/tests/resizable.html | 1 + ui/tests/resizable.js | 17 +++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 ui/tests/images/test.jpg diff --git a/ui/tests/images/test.jpg b/ui/tests/images/test.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7d8ec09963e3b39b3c921259844037b911ac8c07 GIT binary patch literal 915 zcmex=^(PF6}rMnOeST|r4lSw=>~TvNxu(8R<ECr+Na zbot8FYu9hwy!G(W<0ns_J%91?)yGetzkL1n{m0K=Ab&A3Fhjfr_ZgbM1cClyVqsxs zVF&q(k*OSrnFU!`6%E;h90S=C3x$=88aYIqCNA7~kW<+>=!0ld(M2vX6_bamA3
I'm a resizable.
+
    diff --git a/ui/tests/resizable.js b/ui/tests/resizable.js index e8b1db0e2..48582e016 100644 --- a/ui/tests/resizable.js +++ b/ui/tests/resizable.js @@ -379,5 +379,22 @@ test("ui-resizable-se { handles: 'all', grid: [0, 20] }", function() { equals( target.width(), 118, "compare width"); equals( target.height(), 120, "compare height"); +}); + +test("ui-resizable-se { handles: 'all', grid: [0, 20] } wrapped", function() { + + var handle = '.ui-resizable-se', target = $('#resizable2').resizable({ handles: 'all', grid: [0, 20] }); + + expect(4); + + drag(handle, 3, 9); + + equals( target.width(), 103, "compare width"); + equals( target.height(), 100, "compare height"); + + drag(handle, 15, 11); + + equals( target.width(), 118, "compare width"); + equals( target.height(), 120, "compare height"); }); -- 2.39.5