<meta charset="utf-8">
<title>jQuery UI Selectable 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", "selectable" ],
- js: [
- "ui/core.js",
- "ui/widget.js",
- "ui/mouse.js",
- "ui/selectable.js"
- ]
- });
- </script>
-
- <script src="selectable_common.js"></script>
- <script src="selectable_core.js"></script>
- <script src="selectable_events.js"></script>
- <script src="selectable_methods.js"></script>
- <script src="selectable_options.js"></script>
-
- <script src="../swarminject.js"></script>
+ <script src="../../lib/css.js" data-modules="core selectable"></script>
+ <script src="../../lib/bootstrap.js" data-widget="selectable"></script>
</head>
<body>
-/*
- * selectable_events.js
- */
-(function( $ ) {
+define( [
+ "jquery",
+ "lib/helper",
+ "ui/selectable"
+], function( $, testHelpers ) {
module("selectable: events");
var helperOffset,
element = $( "#selectable1" ).selectable(),
- contentToForceScroll = TestHelpers.forceScrollableWindow( "body" );
+ contentToForceScroll = testHelpers.forceScrollableWindow( "body" );
$( window ).scrollTop( 100 ).scrollLeft( 100 );
$( window ).scrollTop( 0 ).scrollLeft( 0 );
});
-})( jQuery );
+} );
-/*
- * selectable_methods.js
- */
-(function($) {
+define( [
+ "jquery",
+ "ui/selectable"
+], function( $ ) {
module("selectable: methods");
equal( chainable, element, "disable is chainable" );
});
-})(jQuery);
+} );