aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/draggable/draggable_options.js
diff options
context:
space:
mode:
authorBrian J. Dowling <bjd-dev@simplicity.net>2014-01-16 21:25:17 +0000
committerBrian J. Dowling <bjd-dev@simplicity.net>2014-01-16 21:25:28 +0000
commitf4423f508ec113b6c58ceabb7d12cdac630e36cd (patch)
tree0608f3f6825117c56dc96ea18fafef0525818ad7 /tests/unit/draggable/draggable_options.js
parent687089736443ef474e5c9700784e5e1a23f2a552 (diff)
downloadjquery-ui-f4423f508ec113b6c58ceabb7d12cdac630e36cd.tar.gz
jquery-ui-f4423f508ec113b6c58ceabb7d12cdac630e36cd.zip
Tests: Fix draggable_options expected test count to be dynamic
The test count was previously incremented to 8 when normally 6 tests are run. After figuring out the dynamic test code, I just made the expect depend on the same array length Also re-enabled the test in the Gruntfile since it now passes.
Diffstat (limited to 'tests/unit/draggable/draggable_options.js')
-rw-r--r--tests/unit/draggable/draggable_options.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js
index 59ec9ce35..f50359f99 100644
--- a/tests/unit/draggable/draggable_options.js
+++ b/tests/unit/draggable/draggable_options.js
@@ -686,7 +686,8 @@ test( "helper, default, switching after initialization", function() {
for ( k in scrollElements ) {
(function( position, helper, scrollElements, scrollElementsTitle ){
test( "{ helper: '" + helper + "' }, " + position + ", with scroll offset on " + scrollElementsTitle, function() {
- expect( 8 );
+ expect( scrollPositions.length * 2 );
+
var i, j,
element = $( "#draggable1" ).css({ position: position, top: 0, left: 0 }).draggable({
helper: helper,