From 3b96fa8cd18a215ed09594a5293f1d63508f02b4 Mon Sep 17 00:00:00 2001 From: Ghislain Seguin Date: Fri, 24 Jun 2011 21:15:56 -0700 Subject: [PATCH] Removed param "refresh" sent to .controlgroup since it's not a $.widget --- tests/unit/controlgroup/controlgroup_core.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/controlgroup/controlgroup_core.js b/tests/unit/controlgroup/controlgroup_core.js index 736b24fd270..8b2a962c161 100644 --- a/tests/unit/controlgroup/controlgroup_core.js +++ b/tests/unit/controlgroup/controlgroup_core.js @@ -24,7 +24,7 @@ setup: function() { this.vcontrolgroup = $( "#vertical-controlgroup" ); this.vcontrolgroup.find( ".ui-btn" ).show(); - this.vcontrolgroup.controlgroup("refresh"); + this.vcontrolgroup.controlgroup(); } }); @@ -33,7 +33,7 @@ //We hide the first button and refresh this.vcontrolgroup.find( ".ui-btn" ).first().hide(); - this.vcontrolgroup.controlgroup("refresh"); + this.vcontrolgroup.controlgroup(); var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ), middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}), @@ -50,7 +50,7 @@ //We hide the last button and refresh this.vcontrolgroup.find( ".ui-btn" ).last().hide(); - this.vcontrolgroup.controlgroup("refresh"); + this.vcontrolgroup.controlgroup(); var buttons = this.vcontrolgroup.find( ".ui-btn" ).filter( ":visible" ), middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}), @@ -84,14 +84,14 @@ setup: function() { this.hcontrolgroup = $( "#horizontal-controlgroup" ); this.hcontrolgroup.find( ".ui-btn" ).show(); - this.hcontrolgroup.controlgroup("refresh"); + this.hcontrolgroup.controlgroup(); } }); test( "horizontal controlgroup after first button was hidden", function() { //We hide the first button and refresh this.hcontrolgroup.find( ".ui-btn" ).first().hide(); - this.hcontrolgroup.controlgroup("refresh"); + this.hcontrolgroup.controlgroup(); var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ), middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}), @@ -106,7 +106,7 @@ test( "horizontal controlgroup after last button was hidden", function() { //We hide the last button and refresh this.hcontrolgroup.find( ".ui-btn" ).last().hide(); - this.hcontrolgroup.controlgroup("refresh"); + this.hcontrolgroup.controlgroup(); var buttons = this.hcontrolgroup.find( ".ui-btn" ).filter( ":visible" ), middlebuttons = buttons.filter(function(index) { return index > 0 && index < (length-1)}),