]> source.dussan.org Git - jquery-ui.git/commitdiff
Position: Convert tests to new infrastructure
authorScott González <scott.gonzalez@gmail.com>
Mon, 6 Apr 2015 17:08:27 +0000 (13:08 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 9 Apr 2015 13:26:26 +0000 (09:26 -0400)
Ref #10119
Ref gh-1528

tests/unit/position/position.html
tests/unit/position/position_core.js

index 334fbbb7826227321caedc3f34604d0057b0381e..1d408728117f6e0ba7f5ea854cfaacd0da08bafe 100644 (file)
@@ -4,20 +4,8 @@
        <meta charset="utf-8">
        <title>jQuery UI Position 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>
-       TestHelpers.loadResources({
-               js: [ "ui/position.js" ]
-       });
-       </script>
-
-       <script src="position_core.js"></script>
-
-       <script src="../swarminject.js"></script>
+       <script src="../../lib/css.js"></script>
+       <script src="../../lib/bootstrap.js" data-modules="position_core"></script>
 </head>
 <body>
 <div id="qunit" style="position:relative; z-index:2;"></div>
index 7176e37e1478bc508356dc1a55a7fa1b37dcb4fc..c480e21789b77294abd9885c5a88cb9c4ce567a4 100644 (file)
@@ -1,4 +1,8 @@
-(function( $ ) {
+define( [
+       "jquery",
+       "lib/common",
+       "ui/position"
+], function( $, common ) {
 
 var win = $( window ),
        scrollTopSupport = function() {
@@ -16,7 +20,7 @@ module( "position", {
        }
 });
 
-TestHelpers.testJshint( "position" );
+common.testJshint( "position" );
 
 test( "my, at, of", function() {
        expect( 4 );
@@ -763,4 +767,4 @@ test( "bug #8710: flip if flipped position fits more", function() {
        }, "no flip - top fits less" );
 });
 
-}( jQuery ) );
+} );