<meta charset="utf-8">
<title>jQuery UI Progressbar 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", "progressbar" ],
- js: [
- "ui/core.js",
- "ui/widget.js",
- "ui/progressbar.js"
- ]
- });
- </script>
-
- <script src="progressbar_common.js"></script>
- <script src="progressbar_core.js"></script>
- <script src="progressbar_events.js"></script>
- <script src="progressbar_methods.js"></script>
- <script src="progressbar_options.js"></script>
-
- <script src="../swarminject.js"></script>
+ <script src="../../lib/css.js" data-modules="core progressbar"></script>
+ <script src="../../lib/bootstrap.js" data-widget="progressbar"></script>
</head>
<body>
-TestHelpers.commonWidgetTests( "progressbar", {
+define( [
+ "lib/common",
+ "ui/progressbar"
+], function( common ) {
+
+common.testWidget( "progressbar", {
defaults: {
classes: {
"ui-progressbar": "ui-corner-all",
create: null
}
});
+
+} );
-(function( $ ) {
+define( [
+ "jquery",
+ "ui/progressbar"
+], function( $ ) {
module( "progressbar: methods" );
-test( "destroy", function() {
+test( "destroy", function( assert ) {
expect( 1 );
- domEqual( "#progressbar", function() {
+ assert.domEqual( "#progressbar", function() {
$( "#progressbar" ).progressbar().progressbar( "destroy" );
});
});
strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" );
});
-}( jQuery ) );
+} );