<meta charset="utf-8">
<title>jQuery UI Selectmenu Test Suite</title>
- <script src="../../jquery.js"></script>
- <link rel="stylesheet" href="../../../external/qunit/qunit.css">
- <script src="../../../external/qunit/qunit.js"></script>
- <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
- <script src="../testsuite.js"></script>
- <script src="../../../external/qunit-assert-classes/qunit-assert-classes.js"></script>
- <script>
- TestHelpers.loadResources({
- css: [ "core", "menu" , "selectmenu" ],
- js: [
- "ui/core.js",
- "ui/widget.js",
- "ui/position.js",
- "ui/menu.js",
- "ui/selectmenu.js"
- ]
- });
- </script>
-
- <script src="selectmenu_common.js"></script>
- <script src="selectmenu_core.js"></script>
- <script src="selectmenu_events.js"></script>
- <script src="selectmenu_methods.js"></script>
- <script src="selectmenu_options.js"></script>
-
- <script src="../swarminject.js"></script>
+ <script src="../../lib/css.js" data-modules="core menu selectmenu"></script>
+ <script src="../../lib/bootstrap.js" data-widget="selectmenu"></script>
</head>
<body>
-(function( $ ) {
+define( [
+ "jquery",
+ "ui/selectmenu"
+], function( $ ) {
module( "selectmenu: methods" );
-test( "destroy", function() {
+test( "destroy", function( assert ) {
expect( 1 );
- domEqual( "#speed", function() {
+ assert.domEqual( "#speed", function() {
$( "#speed" ).selectmenu().selectmenu( "destroy" );
});
});
ok( menu.is( "ul.ui-menu" ), "Menu Widget: element and class" );
});
-})( jQuery );
+} );