Skip to content
Permalink
Browse files

Tests: Widget test helpers extend the main helper

Ref #10119
Ref gh-1528
  • Loading branch information...
scottgonzalez committed Apr 7, 2015
1 parent 42566bd commit dc4b015a8b9acdb5bff2d5dd89737b3d8b64097f
Showing with 634 additions and 589 deletions.
  1. +3 −3 tests/unit/accordion/accordion_core.js
  2. +3 −3 tests/unit/accordion/accordion_events.js
  3. +4 −4 tests/unit/accordion/accordion_methods.js
  4. +4 −4 tests/unit/accordion/accordion_options.js
  5. +7 −4 tests/unit/accordion/accordion_test_helpers.js
  6. +64 −64 tests/unit/datepicker/datepicker_core.js
  7. +7 −7 tests/unit/datepicker/datepicker_events.js
  8. +20 −20 tests/unit/datepicker/datepicker_methods.js
  9. +120 −120 tests/unit/datepicker/datepicker_options.js
  10. +9 −7 tests/unit/datepicker/datepicker_test_helpers.js
  11. +7 −7 tests/unit/dialog/dialog_events.js
  12. +25 −25 tests/unit/dialog/dialog_options.js
  13. +9 −7 tests/unit/dialog/dialog_test_helpers.js
  14. +14 −15 tests/unit/draggable/draggable_core.js
  15. +9 −9 tests/unit/draggable/draggable_methods.js
  16. +117 −117 tests/unit/draggable/draggable_options.js
  17. +32 −12 tests/unit/draggable/draggable_test_helpers.js
  18. +2 −2 tests/unit/droppable/droppable_core.js
  19. +9 −9 tests/unit/droppable/droppable_methods.js
  20. +0 −1 tests/unit/droppable/droppable_options.js
  21. +7 −3 tests/unit/droppable/droppable_test_helpers.js
  22. +2 −2 tests/unit/menu/menu_core.js
  23. +5 −5 tests/unit/menu/menu_events.js
  24. +5 −5 tests/unit/menu/menu_methods.js
  25. +5 −5 tests/unit/menu/menu_options.js
  26. +6 −3 tests/unit/menu/menu_test_helpers.js
  27. +25 −25 tests/unit/resizable/resizable_core.js
  28. +10 −10 tests/unit/resizable/resizable_events.js
  29. +51 −51 tests/unit/resizable/resizable_options.js
  30. +6 −3 tests/unit/resizable/resizable_test_helpers.js
  31. +2 −2 tests/unit/sortable/sortable_core.js
  32. +2 −2 tests/unit/sortable/sortable_events.js
  33. +7 −7 tests/unit/sortable/sortable_methods.js
  34. +6 −3 tests/unit/sortable/sortable_test_helpers.js
  35. +2 −2 tests/unit/spinner/spinner_core.js
  36. +2 −2 tests/unit/spinner/spinner_events.js
  37. +2 −2 tests/unit/spinner/spinner_methods.js
  38. +6 −3 tests/unit/spinner/spinner_test_helpers.js
  39. +2 −2 tests/unit/tabs/tabs_core.js
  40. +2 −2 tests/unit/tabs/tabs_events.js
  41. +3 −3 tests/unit/tabs/tabs_methods.js
  42. +4 −4 tests/unit/tabs/tabs_options.js
  43. +7 −3 tests/unit/tabs/tabs_test_helpers.js
@@ -2,10 +2,10 @@ define( [
"jquery",
"./accordion_test_helpers",
"ui/accordion"
], function( $, accordionTestHelper ) {
], function( $, testHelper ) {

var setupTeardown = accordionTestHelper.setupTeardown,
state = accordionTestHelper.state;
var setupTeardown = testHelper.setupTeardown,
state = testHelper.state;

module( "accordion: core", setupTeardown() );

@@ -2,10 +2,10 @@ define( [
"jquery",
"./accordion_test_helpers",
"ui/accordion"
], function( $, accordionTestHelper ) {
], function( $, testHelper ) {

var setupTeardown = accordionTestHelper.setupTeardown,
state = accordionTestHelper.state;
var setupTeardown = testHelper.setupTeardown,
state = testHelper.state;

module( "accordion: events", setupTeardown() );

@@ -2,11 +2,11 @@ define( [
"jquery",
"./accordion_test_helpers",
"ui/accordion"
], function( $, accordionTestHelper ) {
], function( $, testHelper ) {

var equalHeight = accordionTestHelper.equalHeight,
setupTeardown = accordionTestHelper.setupTeardown,
state = accordionTestHelper.state;
var equalHeight = testHelper.equalHeight,
setupTeardown = testHelper.setupTeardown,
state = testHelper.state;

module( "accordion: methods", setupTeardown() );

@@ -2,11 +2,11 @@ define( [
"jquery",
"./accordion_test_helpers",
"ui/accordion"
], function( $, accordionTestHelper ) {
], function( $, testHelper ) {

var equalHeight = accordionTestHelper.equalHeight,
setupTeardown = accordionTestHelper.setupTeardown,
state = accordionTestHelper.state;
var equalHeight = testHelper.equalHeight,
setupTeardown = testHelper.setupTeardown,
state = testHelper.state;

module( "accordion: options", setupTeardown() );

@@ -1,6 +1,10 @@
define( function() {
define( [
"jquery",
"lib/helper",
"ui/accordion"
], function( $, helper ) {

return {
return $.extend( helper, {
equalHeight: function( accordion, height ) {
accordion.find( ".ui-accordion-content" ).each(function() {
equal( $( this ).outerHeight(), height );
@@ -26,7 +30,6 @@ return {
}).get();
QUnit.push( QUnit.equiv(actual, expected), actual, expected );
}

};
} );

} );
Oops, something went wrong.

0 comments on commit dc4b015

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.