]> source.dussan.org Git - jquery-ui.git/commitdiff
tests visual position: minor refactor
authorRichard D. Worth <rdworth@gmail.com>
Thu, 26 Apr 2012 14:06:01 +0000 (10:06 -0400)
committerRichard D. Worth <rdworth@gmail.com>
Thu, 26 Apr 2012 14:06:01 +0000 (10:06 -0400)
tests/visual/position/position_fit.html
tests/visual/position/position_flip.html
tests/visual/position/position_flipfit.html

index acb2672bcf84a651bfc9970a66cff73e3c197e90..a70423c7994852a460c8fe809b8ba8afcbcc5637 100644 (file)
@@ -16,8 +16,8 @@
                $("ul").insertAfter(inputs);
                inputs.each(function(index) {
                        $(this).position({
-                               my: $(this).data("position").replace(/-/, " "),
-                               at: $(this).data("position").replace(/-/, " "),
+                               my: $(this).data("position"),
+                               at: $(this).data("position"),
                                of: "#container"+index,
                                collision: "none"
                        });
 <div id="container16" class="container2"></div>
 <div id="container17" class="container2"></div>
 
-<input data-position="left-top" />
-<input data-position="center-top" />
-<input data-position="right-top" />
-<input data-position="left-top" />
-<input data-position="center-top" />
-<input data-position="right-top" />
-<input data-position="left-top" />
-<input data-position="center-top" />
-<input data-position="right-top" />
+<input data-position="left top" />
+<input data-position="center top" />
+<input data-position="right top" />
+<input data-position="left top" />
+<input data-position="center top" />
+<input data-position="right top" />
+<input data-position="left top" />
+<input data-position="center top" />
+<input data-position="right top" />
 
-<input data-position="left-top" />
-<input data-position="center-center" />
-<input data-position="right-bottom" />
-<input data-position="left-top" />
-<input data-position="center-center" />
-<input data-position="right-bottom" />
-<input data-position="left-top" />
-<input data-position="center-center" />
-<input data-position="right-bottom" />
+<input data-position="left top" />
+<input data-position="center center" />
+<input data-position="right bottom" />
+<input data-position="left top" />
+<input data-position="center center" />
+<input data-position="right bottom" />
+<input data-position="left top" />
+<input data-position="center center" />
+<input data-position="right bottom" />
 
 <ul>
        <li><a href="#">Java</a></li>
index 66f0b243ff715220ff35b84becc936a70604d354..b67c76fb3bc16f90dfbdedc27e3851f06c8bb619 100644 (file)
@@ -16,8 +16,8 @@
                $("ul").insertAfter(inputs);
                inputs.each(function(index) {
                        $(this).position({
-                               my: $(this).data("position").replace(/-/, " "),
-                               at: $(this).data("position").replace(/-/, " "),
+                               my: $(this).data("position"),
+                               at: $(this).data("position"),
                                of: "#container"+index,
                                collision: "none"
                        });
 <div id="container7" class="container" style="height:100px; margin-bottom: 500px;"></div>
 <div id="container8" class="container" style="height:100px; margin-bottom: 500px;"></div>
 
-<input data-position="left-top" />
-<input data-position="center-top" />
-<input data-position="right-top" />
-<input data-position="left-center" />
-<input data-position="center-center" />
-<input data-position="right-center" />
-<input data-position="left-bottom" />
-<input data-position="center-center" />
-<input data-position="right-bottom" />
+<input data-position="left top" />
+<input data-position="center top" />
+<input data-position="right top" />
+<input data-position="left center" />
+<input data-position="center center" />
+<input data-position="right center" />
+<input data-position="left bottom" />
+<input data-position="center center" />
+<input data-position="right bottom" />
 
 <ul>
        <li><a href="#">Java</a></li>
index 5139b9b88122901158f87a5165444ee58e4af682..840dd5868097e6a44c71bdb3d8a3d76be8838d7d 100644 (file)
@@ -16,8 +16,8 @@
                $("ul").insertAfter(inputs);
                inputs.each(function(index) {
                        $(this).position({
-                               my: $(this).data("position").replace(/-/, " "),
-                               at: $(this).data("position").replace(/-/, " "),
+                               my: $(this).data("position"),
+                               at: $(this).data("position"),
                                of: "#container"+index,
                                collision: "none"
                        });
 <div id="container10" class="container" style="height:100px; margin-bottom: 500px;"></div>
 <div id="container11" class="container" style="height:100px; margin-bottom: 500px;"></div>
 
-<input data-position="left-top" />
-<input data-position="center-top" />
-<input data-position="right-top" />
-<input data-position="left-top" />
-<input data-position="center-top" />
-<input data-position="right-top" />
-<input data-position="left-center" />
-<input data-position="center-center" />
-<input data-position="right-center" />
-<input data-position="left-bottom" />
-<input data-position="center-center" />
-<input data-position="right-bottom" />
+<input data-position="left top" />
+<input data-position="center top" />
+<input data-position="right top" />
+<input data-position="left top" />
+<input data-position="center top" />
+<input data-position="right top" />
+<input data-position="left center" />
+<input data-position="center center" />
+<input data-position="right center" />
+<input data-position="left bottom" />
+<input data-position="center center" />
+<input data-position="right bottom" />
 
 <ul>
        <li><a href="#">Java</a></li>