Bug 1420722: Fix test indentation. r=whitespace-only

MozReview-Commit-ID: 7rpBIekDCjj
This commit is contained in:
Emilio Cobos Álvarez 2018-01-17 00:30:44 +01:00
parent 507b5088d1
commit 031cd854ad

View File

@ -6,17 +6,17 @@
<div id="log"></div>
<script>
function runTest() {
// Change visible region of |closure| element.
document.getElementById("target").classList.add("rotate");
window.setTimeout(function() {
var target = document.getElementById("target");
var bounds = target.getBoundingClientRect();
var x = bounds.x + bounds.width / 2;
var y = bounds.y + bounds.height / 2;
is(document.elementFromPoint(x, y).id, target.id,
"it should be |target| element if visible regions of closure is correct");
SimpleTest.finish();
}, 0);
// Change visible region of |closure| element.
document.getElementById("target").classList.add("rotate");
window.setTimeout(function() {
var target = document.getElementById("target");
var bounds = target.getBoundingClientRect();
var x = bounds.x + bounds.width / 2;
var y = bounds.y + bounds.height / 2;
is(document.elementFromPoint(x, y).id, target.id,
"it should be |target| element if visible regions of closure is correct");
SimpleTest.finish();
}, 0);
}
SimpleTest.waitForExplicitFinish();
@ -50,12 +50,13 @@ SimpleTest.waitForFocus(runTest);
<div id="outer">
<div id="closure">
<div style="transform-style: preserve-3d;">
<div style="transform-style: preserve-3d; background-color: blue;">
<ul style="transform-style: preserve-3d;">
<li style="transform-style:preserve-3d;"><div id="target" class="panel"></div>
</li>
</ul>
</div>
<div style="transform-style: preserve-3d; background-color: blue;">
<ul style="transform-style: preserve-3d;">
<li style="transform-style:preserve-3d;">
<div id="target" class="panel"></div>
</li>
</ul>
</div>
</div>
</div>
</div>