diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-04-07 10:30:07 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-04-09 09:26:58 -0400 |
commit | dc4b015a8b9acdb5bff2d5dd89737b3d8b64097f (patch) | |
tree | f2dc9ecccc32b33622aef1e597992e5a668efe56 /tests/unit/tabs | |
parent | 42566bdd037ac57cf7d6d7a5d059db2ba42518d9 (diff) | |
download | jquery-ui-dc4b015a8b9acdb5bff2d5dd89737b3d8b64097f.tar.gz jquery-ui-dc4b015a8b9acdb5bff2d5dd89737b3d8b64097f.zip |
Tests: Widget test helpers extend the main helper
Ref #10119
Ref gh-1528
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r-- | tests/unit/tabs/tabs_core.js | 4 | ||||
-rw-r--r-- | tests/unit/tabs/tabs_events.js | 4 | ||||
-rw-r--r-- | tests/unit/tabs/tabs_methods.js | 6 | ||||
-rw-r--r-- | tests/unit/tabs/tabs_options.js | 8 | ||||
-rw-r--r-- | tests/unit/tabs/tabs_test_helpers.js | 10 |
5 files changed, 18 insertions, 14 deletions
diff --git a/tests/unit/tabs/tabs_core.js b/tests/unit/tabs/tabs_core.js index c7eb23704..2e39ca0e6 100644 --- a/tests/unit/tabs/tabs_core.js +++ b/tests/unit/tabs/tabs_core.js @@ -2,9 +2,9 @@ define( [ "jquery", "./tabs_test_helpers", "ui/tabs" -], function( $, tabsTestHelpers ) { +], function( $, testHelper ) { -var state = tabsTestHelpers.state; +var state = testHelper.state; module( "tabs: core" ); diff --git a/tests/unit/tabs/tabs_events.js b/tests/unit/tabs/tabs_events.js index b5972242d..fb2746248 100644 --- a/tests/unit/tabs/tabs_events.js +++ b/tests/unit/tabs/tabs_events.js @@ -2,9 +2,9 @@ define( [ "jquery", "./tabs_test_helpers", "ui/tabs" -], function( $, tabsTestHelpers ) { +], function( $, testHelper ) { -var state = tabsTestHelpers.state; +var state = testHelper.state; module( "tabs: events" ); diff --git a/tests/unit/tabs/tabs_methods.js b/tests/unit/tabs/tabs_methods.js index cd4ed3581..fc1ff6dd6 100644 --- a/tests/unit/tabs/tabs_methods.js +++ b/tests/unit/tabs/tabs_methods.js @@ -2,10 +2,10 @@ define( [ "jquery", "./tabs_test_helpers", "ui/tabs" -], function( $, tabsTestHelpers ) { +], function( $, testHelper ) { -var disabled = tabsTestHelpers.disabled, - state = tabsTestHelpers.state; +var disabled = testHelper.disabled, + state = testHelper.state; module( "tabs: methods" ); diff --git a/tests/unit/tabs/tabs_options.js b/tests/unit/tabs/tabs_options.js index 13b88b040..e4c3efa15 100644 --- a/tests/unit/tabs/tabs_options.js +++ b/tests/unit/tabs/tabs_options.js @@ -2,11 +2,11 @@ define( [ "jquery", "./tabs_test_helpers", "ui/tabs" -], function( $, tabsTestHelpers ) { +], function( $, testHelper ) { -var disabled = tabsTestHelpers.disabled, - equalHeight = tabsTestHelpers.equalHeight, - state = tabsTestHelpers.state; +var disabled = testHelper.disabled, + equalHeight = testHelper.equalHeight, + state = testHelper.state; module( "tabs: options" ); diff --git a/tests/unit/tabs/tabs_test_helpers.js b/tests/unit/tabs/tabs_test_helpers.js index 8d35c31db..5c9625f8c 100644 --- a/tests/unit/tabs/tabs_test_helpers.js +++ b/tests/unit/tabs/tabs_test_helpers.js @@ -1,6 +1,10 @@ -define( function() { +define( [ + "jquery", + "lib/helper", + "ui/tabs" +], function( $, helper ) { -return { +return $.extend( helper, { disabled: function( tabs, state ) { var expected, actual, internalState = tabs.tabs( "option", "disabled" ); @@ -65,6 +69,6 @@ return { }).get(); deepEqual( actual, expected ); } -}; +} ); } ); |