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.js104
1 files changed, 52 insertions, 52 deletions
diff --git a/tests/unit/resizable/resizable_options.js b/tests/unit/resizable/resizable_options.js
index 389931f92..76cca560a 100644
--- a/tests/unit/resizable/resizable_options.js
+++ b/tests/unit/resizable/resizable_options.js
@@ -11,12 +11,12 @@ test("aspectRatio: 'preserve' (e)", function() {
var handle = '.ui-resizable-e', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 });
drag(handle, 80);
- equals( target.width(), 130, "compare maxWidth");
- equals( target.height(), 130, "compare maxHeight");
+ equal( target.width(), 130, "compare maxWidth");
+ equal( target.height(), 130, "compare maxHeight");
drag(handle, -130);
- equals( target.width(), 70, "compare minWidth");
- equals( target.height(), 70, "compare minHeight");
+ equal( target.width(), 70, "compare minWidth");
+ equal( target.height(), 70, "compare minHeight");
});
test("aspectRatio: 'preserve' (w)", function() {
@@ -25,12 +25,12 @@ test("aspectRatio: 'preserve' (w)", function() {
var handle = '.ui-resizable-w', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 });
drag(handle, -80);
- equals( target.width(), 130, "compare maxWidth");
- equals( target.height(), 130, "compare maxHeight");
+ equal( target.width(), 130, "compare maxWidth");
+ equal( target.height(), 130, "compare maxHeight");
drag(handle, 130);
- equals( target.width(), 70, "compare minWidth");
- equals( target.height(), 70, "compare minHeight");
+ equal( target.width(), 70, "compare minWidth");
+ equal( target.height(), 70, "compare minHeight");
});
test("aspectRatio: 'preserve' (n)", function() {
@@ -39,12 +39,12 @@ test("aspectRatio: 'preserve' (n)", function() {
var handle = '.ui-resizable-n', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 });
drag(handle, 0, -80);
- equals( target.width(), 130, "compare maxWidth");
- equals( target.height(), 130, "compare maxHeight");
+ equal( target.width(), 130, "compare maxWidth");
+ equal( target.height(), 130, "compare maxHeight");
drag(handle, 0, 80);
- equals( target.width(), 70, "compare minWidth");
- equals( target.height(), 70, "compare minHeight");
+ equal( target.width(), 70, "compare minWidth");
+ equal( target.height(), 70, "compare minHeight");
});
test("aspectRatio: 'preserve' (s)", function() {
@@ -53,12 +53,12 @@ test("aspectRatio: 'preserve' (s)", function() {
var handle = '.ui-resizable-s', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 });
drag(handle, 0, 80);
- equals( target.width(), 130, "compare maxWidth");
- equals( target.height(), 130, "compare maxHeight");
+ equal( target.width(), 130, "compare maxWidth");
+ equal( target.height(), 130, "compare maxHeight");
drag(handle, 0, -80);
- equals( target.width(), 70, "compare minWidth");
- equals( target.height(), 70, "compare minHeight");
+ equal( target.width(), 70, "compare minWidth");
+ equal( target.height(), 70, "compare minHeight");
});
test("aspectRatio: 'preserve' (se)", function() {
@@ -67,12 +67,12 @@ test("aspectRatio: 'preserve' (se)", function() {
var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 });
drag(handle, 80, 80);
- equals( target.width(), 130, "compare maxWidth");
- equals( target.height(), 130, "compare maxHeight");
+ equal( target.width(), 130, "compare maxWidth");
+ equal( target.height(), 130, "compare maxHeight");
drag(handle, -80, -80);
- equals( target.width(), 70, "compare minWidth");
- equals( target.height(), 70, "compare minHeight");
+ equal( target.width(), 70, "compare minWidth");
+ equal( target.height(), 70, "compare minHeight");
});
test("aspectRatio: 'preserve' (sw)", function() {
@@ -81,12 +81,12 @@ test("aspectRatio: 'preserve' (sw)", function() {
var handle = '.ui-resizable-sw', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 });
drag(handle, -80, 80);
- equals( target.width(), 130, "compare maxWidth");
- equals( target.height(), 130, "compare maxHeight");
+ equal( target.width(), 130, "compare maxWidth");
+ equal( target.height(), 130, "compare maxHeight");
drag(handle, 80, -80);
- equals( target.width(), 70, "compare minWidth");
- equals( target.height(), 70, "compare minHeight");
+ equal( target.width(), 70, "compare minWidth");
+ equal( target.height(), 70, "compare minHeight");
});
test("aspectRatio: 'preserve' (ne)", function() {
@@ -95,12 +95,12 @@ test("aspectRatio: 'preserve' (ne)", function() {
var handle = '.ui-resizable-ne', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 });
drag(handle, 80, -80);
- equals( target.width(), 130, "compare maxWidth");
- equals( target.height(), 130, "compare maxHeight");
+ equal( target.width(), 130, "compare maxWidth");
+ equal( target.height(), 130, "compare maxHeight");
drag(handle, -80, 80);
- equals( target.width(), 70, "compare minWidth");
- equals( target.height(), 70, "compare minHeight");
+ equal( target.width(), 70, "compare minWidth");
+ equal( target.height(), 70, "compare minHeight");
});
test("grid", function() {
@@ -109,12 +109,12 @@ test("grid", function() {
var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ handles: 'all', grid: [0, 20] });
drag(handle, 3, 9);
- equals( target.width(), 103, "compare width");
- equals( target.height(), 100, "compare height");
+ equal( target.width(), 103, "compare width");
+ equal( target.height(), 100, "compare height");
drag(handle, 15, 11);
- equals( target.width(), 118, "compare width");
- equals( target.height(), 120, "compare height");
+ equal( target.width(), 118, "compare width");
+ equal( target.height(), 120, "compare height");
});
test("grid (wrapped)", function() {
@@ -123,12 +123,12 @@ test("grid (wrapped)", function() {
var handle = '.ui-resizable-se', target = $('#resizable2').resizable({ handles: 'all', grid: [0, 20] });
drag(handle, 3, 9);
- equals( target.width(), 103, "compare width");
- equals( target.height(), 100, "compare height");
+ equal( target.width(), 103, "compare width");
+ equal( target.height(), 100, "compare height");
drag(handle, 15, 11);
- equals( target.width(), 118, "compare width");
- equals( target.height(), 120, "compare height");
+ equal( target.width(), 118, "compare width");
+ equal( target.height(), 120, "compare height");
});
test("ui-resizable-se { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() {
@@ -137,12 +137,12 @@ test("ui-resizable-se { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 1
var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 });
drag(handle, -50, -50);
- equals( target.width(), 60, "compare minWidth" );
- equals( target.height(), 60, "compare minHeight" );
+ equal( target.width(), 60, "compare minWidth" );
+ equal( target.height(), 60, "compare minHeight" );
drag(handle, 70, 70);
- equals( target.width(), 100, "compare maxWidth" );
- equals( target.height(), 100, "compare maxHeight" );
+ equal( target.width(), 100, "compare maxWidth" );
+ equal( target.height(), 100, "compare maxHeight" );
});
test("ui-resizable-sw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() {
@@ -151,12 +151,12 @@ test("ui-resizable-sw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 1
var handle = '.ui-resizable-sw', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 });
drag(handle, 50, -50);
- equals( target.width(), 60, "compare minWidth" );
- equals( target.height(), 60, "compare minHeight" );
+ equal( target.width(), 60, "compare minWidth" );
+ equal( target.height(), 60, "compare minHeight" );
drag(handle, -70, 70);
- equals( target.width(), 100, "compare maxWidth" );
- equals( target.height(), 100, "compare maxHeight" );
+ equal( target.width(), 100, "compare maxWidth" );
+ equal( target.height(), 100, "compare maxHeight" );
});
test("ui-resizable-ne { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() {
@@ -165,12 +165,12 @@ test("ui-resizable-ne { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 1
var handle = '.ui-resizable-ne', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 });
drag(handle, -50, 50);
- equals( target.width(), 60, "compare minWidth" );
- equals( target.height(), 60, "compare minHeight" );
+ equal( target.width(), 60, "compare minWidth" );
+ equal( target.height(), 60, "compare minHeight" );
drag(handle, 70, -70);
- equals( target.width(), 100, "compare maxWidth" );
- equals( target.height(), 100, "compare maxHeight" );
+ equal( target.width(), 100, "compare maxWidth" );
+ equal( target.height(), 100, "compare maxHeight" );
});
test("ui-resizable-nw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() {
@@ -179,12 +179,12 @@ test("ui-resizable-nw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 1
var handle = '.ui-resizable-nw', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 });
drag(handle, 70, 70);
- equals( target.width(), 60, "compare minWidth" );
- equals( target.height(), 60, "compare minHeight" );
+ equal( target.width(), 60, "compare minWidth" );
+ equal( target.height(), 60, "compare minHeight" );
drag(handle, -70, -70);
- equals( target.width(), 100, "compare maxWidth" );
- equals( target.height(), 100, "compare maxHeight" );
+ equal( target.width(), 100, "compare maxWidth" );
+ equal( target.height(), 100, "compare maxHeight" );
});
})(jQuery);