Skip to content

Commit b093b6f

Browse files
committed
Position tests: Simplify logic and reduce tests.
1 parent 0a6b126 commit b093b6f

File tree

4 files changed

+224
-762
lines changed

4 files changed

+224
-762
lines changed

tests/unit/position/position.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
</script>
2020

2121
<script src="position_core.js"></script>
22-
<script src="position_core_within.js"></script>
2322

2423
<script src="../swarminject.js"></script>
2524
</head>
@@ -39,21 +38,20 @@ <h2 id="qunit-userAgent"></h2>
3938
-->
4039

4140
<div id="qunit-fixture" style="top: 0; left: 0; z-index:1">
42-
<div id="within-container">
43-
<div id="el1" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
44-
<div id="el2" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
45-
<div id="parent" style="position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; line-height: 6px;"></div>
46-
47-
<div style="position: absolute; top: 0px; left: 0px">
48-
<div id="elx" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div>
49-
<div id="parentx" style="position: absolute; width: 20px; height: 20px; top: 40px; left: 40px;"></div>
50-
</div>
41+
<div id="el1" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
42+
<div id="el2" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
43+
<div id="parent" style="position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; line-height: 6px;"></div>
44+
<div id="within" style="position: absolute; width: 12px; height: 12px; top: 2px; left: 0px;"></div>
45+
46+
<div style="position: absolute; top: 0px; left: 0px">
47+
<div id="elx" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div>
48+
<div id="parentx" style="position: absolute; width: 20px; height: 20px; top: 40px; left: 40px;"></div>
49+
</div>
5150

52-
<div style="position: absolute; height: 5000px; width: 5000px;"></div>
51+
<div style="position: absolute; height: 5000px; width: 5000px;"></div>
5352

54-
<div id="fractions-parent" style="position: absolute; left: 10.7432222px; top: 10.532325px; height: 30px; width: 201px;">
55-
<div id="fractions-element"></div>
56-
</div>
53+
<div id="fractions-parent" style="position: absolute; left: 10.7432222px; top: 10.532325px; height: 30px; width: 201px;">
54+
<div id="fractions-element"></div>
5755
</div>
5856

5957
<div id="bug-5280" style="height: 30px; width: 201px;">

0 commit comments

Comments
 (0)