mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 547801: Add code to reftest 'sort-additive-1.svg' to test a theory about why it sporadically failed (if/when it randomly fails again). r=dholbert
This commit is contained in:
parent
f3f209d3c8
commit
494014c1f9
@ -4,19 +4,37 @@
|
||||
class="reftest-wait"
|
||||
onload="swapAnimations()">
|
||||
<script type="text/ecmascript"><![CDATA[
|
||||
// debugging bug 547801:
|
||||
var called_shuffleAnimations = false;
|
||||
|
||||
function swapAnimations() {
|
||||
setTimeout('shuffleAnimations()',10);
|
||||
setTimeout('setTimeAndSnapshot(3.1, true)',20);
|
||||
setTimeout('finished()',20);
|
||||
}
|
||||
|
||||
function shuffleAnimations()
|
||||
{
|
||||
called_shuffleAnimations = true;
|
||||
var high = document.getElementById("high");
|
||||
high.parentNode.insertBefore(high, null);
|
||||
|
||||
var low = document.getElementById("low");
|
||||
low.parentNode.insertBefore(low, low.parentNode.firstChild);
|
||||
}
|
||||
|
||||
function finished()
|
||||
{
|
||||
if (!called_shuffleAnimations) {
|
||||
var line =
|
||||
document.createElementNS('http://www.w3.org/2000/svg', 'line');
|
||||
line.setAttribute('x2', '100%');
|
||||
line.setAttribute('y2', '100%');
|
||||
line.setAttribute('stroke', 'red');
|
||||
line.setAttribute('stroke-width', '10');
|
||||
document.documentElement.appendChild(line);
|
||||
}
|
||||
setTimeAndSnapshot(3.1, true);
|
||||
}
|
||||
]]></script>
|
||||
<script xlink:href="../smil-util.js" type="text/javascript"/>
|
||||
<!-- start line -->
|
||||
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 5.4 KiB |
Loading…
Reference in New Issue
Block a user