From 2582bfab46613da613f1a3354bc733b68a110b95 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 25 Oct 2012 06:39:14 -0400 Subject: Position: Removed offset option. Fixes #6982 - Position: Remove offset option. --- tests/unit/all-active.html | 1 - tests/unit/all.html | 1 - tests/unit/position/position.html | 3 -- tests/unit/position/position_deprecated.html | 56 ---------------------------- tests/unit/position/position_deprecated.js | 33 ---------------- tests/unit/subsuite.js | 2 +- 6 files changed, 1 insertion(+), 95 deletions(-) delete mode 100644 tests/unit/position/position_deprecated.html delete mode 100644 tests/unit/position/position_deprecated.js (limited to 'tests/unit') diff --git a/tests/unit/all-active.html b/tests/unit/all-active.html index 236411475..fe3e05682 100644 --- a/tests/unit/all-active.html +++ b/tests/unit/all-active.html @@ -27,7 +27,6 @@ "effects/effects.html", "menu/menu.html", "position/position.html", - "position/position_deprecated.html", "progressbar/progressbar.html", //"resizable/resizable.html", //"selectable/selectable.html", diff --git a/tests/unit/all.html b/tests/unit/all.html index e8dac887c..f3e5b33c1 100644 --- a/tests/unit/all.html +++ b/tests/unit/all.html @@ -27,7 +27,6 @@ "effects/effects.html", "menu/menu.html", "position/position.html", - "position/position_deprecated.html", "progressbar/progressbar.html", //"resizable/resizable.html", //"selectable/selectable.html", diff --git a/tests/unit/position/position.html b/tests/unit/position/position.html index 8738ae667..f3b1ad86c 100644 --- a/tests/unit/position/position.html +++ b/tests/unit/position/position.html @@ -5,9 +5,6 @@ jQuery UI Position Test Suite - diff --git a/tests/unit/position/position_deprecated.html b/tests/unit/position/position_deprecated.html deleted file mode 100644 index 84aae61f8..000000000 --- a/tests/unit/position/position_deprecated.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - jQuery UI Position Test Suite - - - - - - - - - - - - - - - - -
- - - -
-
-
-
-
- -
-
-
-
- -
- -
-
-
- -
-
-
-
- - - diff --git a/tests/unit/position/position_deprecated.js b/tests/unit/position/position_deprecated.js deleted file mode 100644 index 789d4e608..000000000 --- a/tests/unit/position/position_deprecated.js +++ /dev/null @@ -1,33 +0,0 @@ -(function( $ ) { - -test( "offset", function() { - expect( 3 ); - $( "#elx" ).position({ - my: "left top", - at: "left bottom", - of: "#parentx", - offset: "10", - collision: "none" - }); - deepEqual( $( "#elx" ).offset(), { top: 70, left: 50 }, "single value" ); - - $( "#elx" ).position({ - my: "left top", - at: "left bottom", - of: "#parentx", - offset: "5 -3", - collision: "none" - }); - deepEqual( $( "#elx" ).offset(), { top: 57, left: 45 }, "two values" ); - - $( "#elx" ).position({ - my: "left top", - at: "left bottom", - of: "#parentx", - offset: "5px -3px", - collision: "none" - }); - deepEqual( $( "#elx" ).offset(), { top: 57, left: 45 }, "with units" ); -}); - -}( jQuery ) ); diff --git a/tests/unit/subsuite.js b/tests/unit/subsuite.js index b583bbd75..148f35b1e 100644 --- a/tests/unit/subsuite.js +++ b/tests/unit/subsuite.js @@ -7,7 +7,7 @@ var versions = [ "git" ], additionalTests = { - position: [ "position_deprecated.html" ] + // component: [ "other_test.html" ] }; window.testAllVersions = function( widget ) { -- cgit v1.2.3