aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/position/position_core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-04-06 13:08:27 -0400
committerScott González <scott.gonzalez@gmail.com>2015-04-09 09:26:26 -0400
commit739f9b3f6382195b6976abeb71fc4b09f75cc4e5 (patch)
tree6aff36f6edf71eac476265dc8ad7a2ef1ebce77c /tests/unit/position/position_core.js
parentf2ca8f92f0d9ab9c7bf2e202e7ff7778daeef85c (diff)
downloadjquery-ui-739f9b3f6382195b6976abeb71fc4b09f75cc4e5.tar.gz
jquery-ui-739f9b3f6382195b6976abeb71fc4b09f75cc4e5.zip
Position: Convert tests to new infrastructure
Ref #10119 Ref gh-1528
Diffstat (limited to 'tests/unit/position/position_core.js')
-rw-r--r--tests/unit/position/position_core.js10
1 files changed, 7 insertions, 3 deletions
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 ) );
+} );