<meta charset="utf-8">
<title>jQuery UI Button 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", "button" ],
- js: [
- "ui/core.js",
- "ui/widget.js",
- "ui/button.js"
- ]
- });
- </script>
-
- <script src="button_common.js"></script>
- <script src="button_core.js"></script>
- <script src="button_events.js"></script>
- <script src="button_methods.js"></script>
- <script src="button_options.js"></script>
-
- <script src="../swarminject.js"></script>
+ <script src="../../lib/css.js" data-modules="core button"></script>
+ <script src="../../lib/bootstrap.js" data-widget="button"></script>
</head>
<body>
-/*
- * button_methods.js
- */
-(function($) {
+define( [
+ "jquery",
+ "ui/button"
+], function( $ ) {
module("button: methods");
-test("destroy", function() {
+test("destroy", function( assert ) {
expect( 1 );
- domEqual( "#button", function() {
+ assert.domEqual( "#button", function() {
$( "#button" ).button().button( "destroy" );
});
});
equal( checkboxButtonset.find( ":ui-button" ).length, 4, "checkbox" );
});
-})(jQuery);
+} );