aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/position
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/position')
-rw-r--r--tests/unit/position/position.html16
-rw-r--r--tests/unit/position/position_core.js10
2 files changed, 9 insertions, 17 deletions
diff --git a/tests/unit/position/position.html b/tests/unit/position/position.html
index 334fbbb78..1d4087281 100644
--- a/tests/unit/position/position.html
+++ b/tests/unit/position/position.html
@@ -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>
diff --git a/tests/unit/position/position_core.js b/tests/unit/position/position_core.js
index 7176e37e1..c480e2178 100644
--- a/tests/unit/position/position_core.js
+++ b/tests/unit/position/position_core.js
@@ -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 ) );
+} );