From 739f9b3f6382195b6976abeb71fc4b09f75cc4e5 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 6 Apr 2015 13:08:27 -0400 Subject: Position: Convert tests to new infrastructure Ref #10119 Ref gh-1528 --- tests/unit/position/position_core.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests/unit/position/position_core.js') 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 ) ); +} ); -- cgit v1.2.3