diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-04-06 13:04:04 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-04-09 09:26:26 -0400 |
commit | f2ca8f92f0d9ab9c7bf2e202e7ff7778daeef85c (patch) | |
tree | 790023b094bbf4890f4d552b3a75ccc1177fda5b /tests/unit/menu/menu_methods.js | |
parent | a0e3da0459e4fbbde99dfa5f41929fdc82dfde1e (diff) | |
download | jquery-ui-f2ca8f92f0d9ab9c7bf2e202e7ff7778daeef85c.tar.gz jquery-ui-f2ca8f92f0d9ab9c7bf2e202e7ff7778daeef85c.zip |
Menu: Convert tests to new infrastructure
Ref #10119
Ref gh-1528
Diffstat (limited to 'tests/unit/menu/menu_methods.js')
-rw-r--r-- | tests/unit/menu/menu_methods.js | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/unit/menu/menu_methods.js b/tests/unit/menu/menu_methods.js index 840ccbd17..ad30e5f13 100644 --- a/tests/unit/menu/menu_methods.js +++ b/tests/unit/menu/menu_methods.js @@ -1,21 +1,25 @@ -(function( $ ) { +define( [ + "jquery", + "./menu_test_helpers", + "ui/menu" +], function( $, menuTestHelpers ) { -var log = TestHelpers.menu.log, - logOutput = TestHelpers.menu.logOutput, - click = TestHelpers.menu.click; +var log = menuTestHelpers.log, + logOutput = menuTestHelpers.logOutput, + click = menuTestHelpers.click; module( "menu: methods", { setup: function() { - TestHelpers.menu.clearLog(); + menuTestHelpers.clearLog(); } }); -test( "destroy", function() { +test( "destroy", function( assert ) { expect( 2 ); - domEqual( "#menu2", function() { + assert.domEqual( "#menu2", function() { $( "#menu2" ).menu().menu( "destroy" ); }); - domEqual( "#menu5", function() { + assert.domEqual( "#menu5", function() { $( "#menu5").menu().menu( "destroy" ); }); }); @@ -109,4 +113,4 @@ test( "widget", function() { // TODO: test select method -})( jQuery ); +} ); |