aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-09-30 15:38:42 +0200
committerAlexander Schmitz <arschmitz@gmail.com>2015-10-08 14:02:58 -0400
commit6fc2cb3c7c8459c82accc05b2b41d5a909eacec5 (patch)
tree66a1e3651b82bcdb11c1f454625831918afa4945 /tests
parent42daa77f908e392698b157372b60977c064fbaa8 (diff)
downloadjquery-ui-6fc2cb3c7c8459c82accc05b2b41d5a909eacec5.tar.gz
jquery-ui-6fc2cb3c7c8459c82accc05b2b41d5a909eacec5.zip
Controlgroup: Rename excludeInvisible to onlyVisible
Gets rid of the double negative.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/controlgroup/common.js2
-rw-r--r--tests/unit/controlgroup/methods.js6
-rw-r--r--tests/unit/controlgroup/options.js10
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/unit/controlgroup/common.js b/tests/unit/controlgroup/common.js
index e072535d2..70fcfc3e9 100644
--- a/tests/unit/controlgroup/common.js
+++ b/tests/unit/controlgroup/common.js
@@ -17,7 +17,7 @@ common.testWidget( "controlgroup", {
"controlgroupLabel": ".ui-controlgroup-label"
},
direction: "horizontal",
- excludeInvisible: true,
+ onlyVisible: true,
classes: {},
// Callbacks
diff --git a/tests/unit/controlgroup/methods.js b/tests/unit/controlgroup/methods.js
index b0d711ee7..77715f8b8 100644
--- a/tests/unit/controlgroup/methods.js
+++ b/tests/unit/controlgroup/methods.js
@@ -83,7 +83,7 @@ $.each( tests, function( widget, html ) {
}
// Hide each element and check the corner classes
- function iterateHidden( excludeInvisible ) {
+ function iterateHidden( onlyVisible ) {
for ( i = 0; i < 4; i++ ) {
$( controls ).each( showElements );
@@ -91,7 +91,7 @@ $.each( tests, function( widget, html ) {
controls[ i ][ widget ]( "widget" ).hide();
currentClasses = classes.slice( 0 );
- if ( excludeInvisible ) {
+ if ( onlyVisible ) {
if ( i === 0 ) {
currentClasses[ i + 1 ] = classes[ i ];
currentClasses[ i ] = false;
@@ -128,7 +128,7 @@ $.each( tests, function( widget, html ) {
iterateHidden( true );
// Set the exclude option to false so we no longer care about hidden
- element.controlgroup( "option", "excludeInvisible", false );
+ element.controlgroup( "option", "onlyVisible", false );
// Iterate hiding the elements again and check their corner classes
iterateHidden();
diff --git a/tests/unit/controlgroup/options.js b/tests/unit/controlgroup/options.js
index 90a57e093..0a1b88f1b 100644
--- a/tests/unit/controlgroup/options.js
+++ b/tests/unit/controlgroup/options.js
@@ -73,21 +73,21 @@ test( "items: custom widget", function() {
"Custom widget called" );
} );
-test( "excludeInvisible", function( assert ) {
+test( "onlyVisible", function( assert ) {
expect( 4 );
var element = $( ".controlgroup" ).controlgroup( {
- excludeInvisible: false
+ onlyVisible: false
} ),
buttons = element.children( ".ui-button" );
assert.lacksClassStart( buttons.eq( 1 ), "ui-corner" );
assert.hasClasses( buttons.eq( 0 ), "ui-corner-left",
- "ExcludeInvisible: false: First button hidden second button doesn't get a corner class" );
+ "onlyVisible: false: First button hidden second button doesn't get a corner class" );
- element.controlgroup( "option", "excludeInvisible", true );
+ element.controlgroup( "option", "onlyVisible", true );
assert.lacksClassStart( buttons.eq( 0 ), "ui-corner" );
assert.hasClasses( buttons.eq( 1 ), "ui-corner-left",
- "ExcludeInvisible: true: First button is hidden second button get corner class" );
+ "onlyVisible: true: First button is hidden second button get corner class" );
} );
test( "direction", function( assert ) {