Skip to content
Permalink
Browse files

tests visual position: minor refactor

  • Loading branch information...
rdworth committed Apr 26, 2012
1 parent 258a637 commit 4fd2befe94421d330c02004dcad4cc03a38ba99e
@@ -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"
});
@@ -113,25 +113,25 @@
<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>
@@ -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"
});
@@ -52,15 +52,15 @@
<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>
@@ -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"
});
@@ -58,18 +58,18 @@
<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>

0 comments on commit 4fd2bef

Please sign in to comment.
You can’t perform that action at this time.