Bug 872619 - Stop using 'load' in many SVG reftests, and use MozReftestInvalidate instead, and flag the fallback setTimeouts. r=dholbert
--HG-- extra : rebase_source : c41d8fb0048e6c6eea70db12d5b6e976fc442b69
@ -10,8 +10,7 @@
|
||||
<rect id="r1" width="100%" height="100%" fill="transparent"/>
|
||||
<script type="application/javascript">
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
// force a repaint
|
||||
|
Before Width: | Height: | Size: 850 B After Width: | Height: | Size: 859 B |
@ -1,6 +1,5 @@
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/licenses/publicdomain/
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<html class="reftest-wait">
|
||||
@ -10,12 +9,15 @@
|
||||
function snapshot() {
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
function delay_snapshot() {
|
||||
setTimeout(snapshot, 100); // delay snapshot to allow time for
|
||||
// :visited style inside the image to
|
||||
// resolve (which it hopefully won't)
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_snapshot, false);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<!-- Wait 100ms before taking snapshot, to be sure we've allowed time for
|
||||
:visited style inside the image to resolve (which it hopefully won't) -->
|
||||
<body style="margin: 0" onload="setTimeout(snapshot, 100)">
|
||||
<body style="margin: 0">
|
||||
<img src="svg-image-visited-1-helper.svg">
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,6 +1,5 @@
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/licenses/publicdomain/
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<html class="reftest-wait">
|
||||
@ -10,12 +9,15 @@
|
||||
function snapshot() {
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
function delay_snapshot() {
|
||||
setTimeout(snapshot, 100); // delay snapshot to allow time for
|
||||
// :visited style inside the image to
|
||||
// resolve (which it hopefully won't)
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_snapshot, false);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<!-- Wait 100ms before taking snapshot, to be sure we've allowed time for
|
||||
:visited style inside the image to resolve (which it hopefully won't) -->
|
||||
<body style="margin: 0" onload="setTimeout(snapshot, 100)">
|
||||
<body style="margin: 0">
|
||||
<img src="svg-image-visited-2-helper.svg">
|
||||
</body>
|
||||
</html>
|
||||
|
@ -82,8 +82,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
@ -23,8 +23,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@ -20,8 +20,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 1017 B After Width: | Height: | Size: 1.0 KiB |
@ -16,8 +16,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 967 B After Width: | Height: | Size: 976 B |
@ -21,8 +21,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@ -24,8 +24,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@ -10,8 +10,7 @@
|
||||
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", boom, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(boom, 5000);
|
||||
setTimeout(boom, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function boom() {
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@ -18,8 +18,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.2 KiB |
@ -10,8 +10,7 @@
|
||||
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", boom, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(boom, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function boom() {
|
||||
|
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 843 B |
@ -16,8 +16,7 @@ function doTest() {
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 3000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
]]>
|
||||
</script>
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@ -31,8 +31,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@ -18,8 +18,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 844 B After Width: | Height: | Size: 853 B |
@ -72,8 +72,7 @@
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
@ -3,7 +3,7 @@
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" onload="startTest()">
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Testing that href changes are live</title>
|
||||
<defs>
|
||||
<pattern id="r1" width="100%" height="100%" patternUnits="userSpaceOnUse">
|
||||
@ -18,11 +18,8 @@
|
||||
<rect id="u1" width="100%" height="100%" fill="url(#r1)"/>
|
||||
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.getElementById("r1").setAttributeNS("http://www.w3.org/1999/xlink", "href", "#r2");
|
||||
|
Before Width: | Height: | Size: 970 B After Width: | Height: | Size: 925 B |
@ -3,7 +3,7 @@
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" onload="startTest()">
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Testing that style changes are reflected in patterns</title>
|
||||
<style>
|
||||
.foo { fill:lime; }
|
||||
@ -21,11 +21,8 @@
|
||||
<rect id="u1" width="100%" height="100%" fill="url(#r1)"/>
|
||||
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.getElementById("d").setAttribute("class", "foo");
|
||||
|
Before Width: | Height: | Size: 1011 B After Width: | Height: | Size: 966 B |
@ -3,7 +3,7 @@
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" onload="startTest()">
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Testing that ID-map changes are tracked by pattern inheritance</title>
|
||||
<defs>
|
||||
<pattern id="r1" width="100%" height="100%" patternUnits="userSpaceOnUse" xlink:href="#r2">
|
||||
@ -18,11 +18,8 @@
|
||||
<rect id="u1" width="100%" height="100%" fill="url(#r1)"/>
|
||||
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.getElementById("r0").setAttribute("id", "r2");
|
||||
|
Before Width: | Height: | Size: 978 B After Width: | Height: | Size: 933 B |
@ -19,9 +19,7 @@ function move_small_object()
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", move_small_object, false);
|
||||
|
||||
// fallback for browsers that don't support MozReftestInvalidate
|
||||
setTimeout(move_small_object, 1000);
|
||||
setTimeout(move_small_objects, 4000); // fallback for running outside reftest
|
||||
|
||||
//]]></script>
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
@ -19,9 +19,7 @@ function move_small_object()
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", move_small_object, false);
|
||||
|
||||
// fallback for browsers that don't support MozReftestInvalidate
|
||||
setTimeout(move_small_object, 500);
|
||||
setTimeout(move_small_objects, 4000); // fallback for running outside reftest
|
||||
|
||||
//]]></script>
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
@ -8,8 +8,7 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", go, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(go, 3000);
|
||||
setTimeout(go, 4000); // fallback for running outside reftest
|
||||
|
||||
function go() {
|
||||
document.getElementById("parent").setAttribute("rotate", "5,15,25,35,45,55");
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.2 KiB |
@ -2,15 +2,14 @@
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="startTest()">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
|
||||
|
||||
<title>Testcase for text removal</title>
|
||||
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 5000); // for non-gecko-reftest-harness viewers
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.getElementById("text").firstChild.nodeValue='';
|
||||
document.documentElement.removeAttribute("class");
|
||||
|
Before Width: | Height: | Size: 725 B After Width: | Height: | Size: 667 B |
@ -2,7 +2,7 @@
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="sample()">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
|
||||
<script>
|
||||
var curXScale = 3;
|
||||
function sample() {
|
||||
@ -16,6 +16,8 @@
|
||||
document.documentElement.removeAttribute('class');
|
||||
}
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", sample, false);
|
||||
setTimeout(sample, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
|
Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 918 B |
@ -2,7 +2,7 @@
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait" onload="startTest()" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Testing that dynamic changes to the element for a given ID are reflected in textPath</title>
|
||||
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=458010 -->
|
||||
<defs>
|
||||
@ -14,11 +14,8 @@
|
||||
</text>
|
||||
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
// check that changing an id to "m1" lets l1 find it
|
||||
|
Before Width: | Height: | Size: 999 B After Width: | Height: | Size: 954 B |
@ -4,7 +4,7 @@
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="startTest()" class="reftest-wait">
|
||||
class="reftest-wait">
|
||||
<title>Test for changes to the IDs in the document causing textPath references to update</title>
|
||||
|
||||
<defs>
|
||||
@ -15,11 +15,8 @@
|
||||
<text style="16px sans-serif"><textPath xlink:href="#p1">Hello</textPath></text>
|
||||
|
||||
<script>
|
||||
function startTest() {
|
||||
window.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not in the reftest harness
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.getElementsByTagName("path")[0].removeAttribute("id");
|
||||
|
Before Width: | Height: | Size: 911 B After Width: | Height: | Size: 845 B |
@ -4,7 +4,7 @@
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="startTest()" class="reftest-wait" id="p1">
|
||||
class="reftest-wait" id="p1">
|
||||
<title>Test for changes to the IDs in the document causing textPath references to update</title>
|
||||
|
||||
<defs>
|
||||
@ -14,11 +14,8 @@
|
||||
<text style="16px sans-serif"><textPath xlink:href="#p1">Hello</textPath></text>
|
||||
|
||||
<script>
|
||||
function startTest() {
|
||||
window.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not in the reftest harness
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.documentElement.removeAttribute("id");
|
||||
|
Before Width: | Height: | Size: 863 B After Width: | Height: | Size: 797 B |
@ -12,8 +12,7 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
var u = document.getElementById("u");
|
||||
|
Before Width: | Height: | Size: 722 B After Width: | Height: | Size: 731 B |
@ -13,8 +13,7 @@
|
||||
<![CDATA[
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
// Since the <use> does not reference an <svg> or <symbol>, the value
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@ -18,8 +18,7 @@
|
||||
<![CDATA[
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
var u = document.getElementById("u");
|
||||
|
Before Width: | Height: | Size: 940 B After Width: | Height: | Size: 949 B |
@ -19,8 +19,7 @@
|
||||
<![CDATA[
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
var svg = document.getElementById("svg");
|
||||
|
Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 923 B |
@ -17,7 +17,7 @@ function hide_red_rect()
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", hide_red_rect, false);
|
||||
setTimeout(hide_red_rect, 5000)
|
||||
setTimeout(hide_red_rect, 4000); // fallback for running outside reftest
|
||||
|
||||
//]]></script>
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
|
Before Width: | Height: | Size: 884 B After Width: | Height: | Size: 925 B |
@ -13,7 +13,7 @@ function run_test() {
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", run_test);
|
||||
setTimeout(run_test, 3000);
|
||||
setTimeout(run_test, 4000); // fallback for running outside reftest
|
||||
|
||||
</script>
|
||||
<filter id="filter" x="0" y="0" width="150" height="150"
|
||||
|
Before Width: | Height: | Size: 1006 B After Width: | Height: | Size: 1.0 KiB |
@ -2,8 +2,7 @@
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
|
||||
onload="startTest()" class="reftest-wait">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait">
|
||||
|
||||
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=381285 -->
|
||||
|
||||
@ -16,11 +15,8 @@
|
||||
|
||||
<script>
|
||||
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.getElementById('g').style.fontSize = '16px';
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@ -4,8 +4,7 @@
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
class="reftest-wait"
|
||||
onload="startTest()">
|
||||
class="reftest-wait">
|
||||
|
||||
<title>Testcase for changing the 'transform' on foreignObject</title>
|
||||
|
||||
@ -17,11 +16,8 @@
|
||||
// After the rect has rendered the transform on the
|
||||
// foreignObject is removed and the green div should fill the viewport.
|
||||
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.getElementById('fo').setAttribute('transform', '');
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
@ -2,8 +2,7 @@
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
|
||||
onload="setTimeout(handleLoad, 0);">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait">
|
||||
|
||||
<title>Testcase for removing display:none from foreignObject child</title>
|
||||
|
||||
@ -12,13 +11,15 @@
|
||||
<script type="application/ecmascript">
|
||||
<![CDATA[
|
||||
|
||||
// This must be called using setTimeout since it was _after_ loading we failed
|
||||
|
||||
function handleLoad(event)
|
||||
function doTest(event)
|
||||
{
|
||||
document.getElementById('div').style.display = 'block';
|
||||
document.documentElement.removeAttribute('class');
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
]]>
|
||||
</script>
|
||||
<rect width="100%" height="100%" fill="red"/>
|
||||
|
Before Width: | Height: | Size: 853 B After Width: | Height: | Size: 935 B |
@ -4,8 +4,7 @@
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
class="reftest-wait"
|
||||
onload="startTest()">
|
||||
class="reftest-wait">
|
||||
|
||||
<title>Testcase for repaint of the area previously covered by a foreignObject</title>
|
||||
|
||||
@ -17,11 +16,8 @@
|
||||
// has rendered the foreignObject (and thus div) is moved out
|
||||
// of the viewport which should then be filled by the green rect as a result.
|
||||
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.getElementById('fo').setAttribute('y', '100%');
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
@ -1,11 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait"
|
||||
height="0" width="0"
|
||||
onload="startTest()">
|
||||
height="0" width="0">
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 5000); // for non-gecko-reftest-harness viewers
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.documentElement.removeAttribute("width");
|
||||
document.documentElement.removeAttribute("height");
|
||||
|
Before Width: | Height: | Size: 757 B After Width: | Height: | Size: 694 B |
@ -1,11 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="reftest-wait"
|
||||
height="0" width="0" viewBox="0 0 50 50" preserveAspectRatio="none"
|
||||
onload="startTest()">
|
||||
height="0" width="0" viewBox="0 0 50 50" preserveAspectRatio="none">
|
||||
<script>
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 5000); // for non-gecko-reftest-harness viewers
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.documentElement.removeAttribute("width");
|
||||
document.documentElement.removeAttribute("height");
|
||||
|
Before Width: | Height: | Size: 804 B After Width: | Height: | Size: 741 B |
@ -3,7 +3,7 @@
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
|
||||
onload="startTest()" class="reftest-wait">
|
||||
class="reftest-wait">
|
||||
|
||||
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=708155 -->
|
||||
|
||||
@ -11,11 +11,8 @@
|
||||
|
||||
<script>
|
||||
|
||||
function startTest() {
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
document.getElementById('fo').style.opacity = '1';
|
||||
|
Before Width: | Height: | Size: 934 B After Width: | Height: | Size: 889 B |
@ -42,7 +42,7 @@ function hide_red_rects()
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", hide_red_rects, false);
|
||||
setTimeout(hide_red_rects, 1000)
|
||||
setTimeout(hide_red_rects, 4000); // fallback for running outside reftest
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@ -6,8 +6,7 @@
|
||||
<script>
|
||||
|
||||
window.addEventListener("MozReftestInvalidate", run, false);
|
||||
|
||||
setTimeout(run, 3000); // for non-gecko
|
||||
setTimeout(run, 4000); // fallback for running outside reftest
|
||||
|
||||
function run() {
|
||||
setTimeAndSnapshot(1, true)
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@ -6,8 +6,7 @@
|
||||
<script>
|
||||
|
||||
window.addEventListener("MozReftestInvalidate", run, false);
|
||||
|
||||
setTimeout(run, 3000); // for non-gecko
|
||||
setTimeout(run, 4000); // fallback for running outside reftest
|
||||
|
||||
function run() {
|
||||
setTimeAndSnapshot(1, true)
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@ -12,8 +12,7 @@
|
||||
<script xlink:href="smil-util.js" type="text/javascript"/>
|
||||
<script>
|
||||
window.addEventListener("MozReftestInvalidate", run, false);
|
||||
|
||||
setTimeout(run, 3000); // for non-gecko
|
||||
setTimeout(run, 4000); // fallback for running outside reftest
|
||||
|
||||
function run() {
|
||||
setTimeAndSnapshot(101, true);
|
||||
|
Before Width: | Height: | Size: 956 B After Width: | Height: | Size: 978 B |
@ -2,8 +2,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
id="svg"
|
||||
class="reftest-wait"
|
||||
onload="window.setTimeout(seek, 10)">
|
||||
class="reftest-wait">
|
||||
<script xlink:href="event-util.js" type="text/javascript"/>
|
||||
<script type="text/javascript">
|
||||
function seek()
|
||||
@ -11,6 +10,8 @@
|
||||
document.documentElement.setCurrentTime(40);
|
||||
finish(30);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", seek, false);
|
||||
setTimeout(seek, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
<rect width="100" height="100" fill="red">
|
||||
<set attributeName="fill" attributeType="CSS" to="green"
|
||||
|
Before Width: | Height: | Size: 595 B After Width: | Height: | Size: 689 B |
@ -23,9 +23,13 @@ function doSnapshot() {
|
||||
svg.setCurrentTime(2);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", snapshot, false);
|
||||
setTimeout(snapshot, 4000); // fallback for running outside reftest
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="snapshot()">
|
||||
<body>
|
||||
<a href="#" id="a">Play!</a>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="120px" height="120px" id="svg">
|
||||
<rect width="100" height="100" fill="red">
|
||||
|
@ -2,8 +2,7 @@
|
||||
positions, the one that ends up later in the document should win. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
class="reftest-wait"
|
||||
onload="setTimeout('go()', 0)">
|
||||
class="reftest-wait">
|
||||
<script xlink:href="../smil-util.js" type="text/javascript"/>
|
||||
|
||||
<script><![CDATA[
|
||||
@ -17,6 +16,8 @@
|
||||
|
||||
setTimeAndSnapshot(1.0, true)
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", go, false);
|
||||
setTimeout(go, 4000); // fallback for running outside reftest
|
||||
]]></script>
|
||||
|
||||
<rect x="0" y="0" width="100" height="100" fill="blue">
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.2 KiB |
@ -42,9 +42,13 @@ function snapshotB() {
|
||||
svga.setCurrentTime(svga.getCurrentTime());
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", snapshot, false);
|
||||
setTimeout(snapshot, 4000); // fallback for running outside reftest
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="snapshot()">
|
||||
<body>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="120px" height="120px" id="svg-a">
|
||||
<rect width="100" height="100" fill="orange">
|
||||
<animate attributeName="fill" attributeType="CSS" id="a"
|
||||
|
@ -3,9 +3,7 @@
|
||||
then wait a little, and make sure the animation is frozen there. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="setTimeout('go()', 1100);"
|
||||
class="reftest-wait"
|
||||
>
|
||||
class="reftest-wait">
|
||||
<script>
|
||||
function go() {
|
||||
var rect1 = document.getElementById("rect1");
|
||||
@ -16,6 +14,11 @@
|
||||
// Wait >= 1s before taking screenshot, to give animation time to finish
|
||||
setTimeout('document.documentElement.removeAttribute("class")', 1100);
|
||||
}
|
||||
function delay_go() {
|
||||
setTimeout(go, 1100);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_go, false);
|
||||
setTimeout(delay_go, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
<rect id="rect1" y="40" width="10" height="10" fill="blue">
|
||||
<animate id="anim" attributeName="x"
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.2 KiB |
@ -2,9 +2,7 @@
|
||||
focus just on the second rect. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="setTimeout('go()', 1100);"
|
||||
class="reftest-wait"
|
||||
>
|
||||
class="reftest-wait">
|
||||
<script>
|
||||
function go() {
|
||||
var rect1 = document.getElementById("rect1");
|
||||
@ -15,6 +13,11 @@
|
||||
// Wait >= 1s before taking screenshot, to give animation time to finish
|
||||
setTimeout('document.documentElement.removeAttribute("class")', 1100);
|
||||
}
|
||||
function delay_go() {
|
||||
setTimeout(go, 1100);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_go, false);
|
||||
setTimeout(delay_go, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
<rect id="rect1" y="40" width="10" height="10" fill="white">
|
||||
<animate id="anim" attributeName="x"
|
||||
|
Before Width: | Height: | Size: 934 B After Width: | Height: | Size: 1.1 KiB |
@ -3,9 +3,7 @@
|
||||
then wait a little, and make sure the animation is frozen there. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="setTimeout('go()', 1100);"
|
||||
class="reftest-wait"
|
||||
>
|
||||
class="reftest-wait">
|
||||
<script>
|
||||
function go() {
|
||||
var rect1 = document.getElementById("rect1");
|
||||
@ -16,6 +14,11 @@
|
||||
// Wait >= 1s before taking screenshot, to give animation time to finish
|
||||
setTimeout('document.documentElement.removeAttribute("class")', 1100);
|
||||
}
|
||||
function delay_go() {
|
||||
setTimeout(go, 1100);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_go, false);
|
||||
setTimeout(delay_go, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
<rect id="rect1" y="40" width="10" height="10" fill="blue">
|
||||
<animate id="anim" attributeName="x"
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.2 KiB |
@ -2,9 +2,7 @@
|
||||
focus just on the second rect. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="setTimeout('go()', 1100);"
|
||||
class="reftest-wait"
|
||||
>
|
||||
class="reftest-wait">
|
||||
<script>
|
||||
function go() {
|
||||
var rect1 = document.getElementById("rect1");
|
||||
@ -15,6 +13,11 @@
|
||||
// Wait >= 1s before taking screenshot, to give animation time to finish
|
||||
setTimeout('document.documentElement.removeAttribute("class")', 1100);
|
||||
}
|
||||
function delay_go() {
|
||||
setTimeout(go, 1100);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_go, false);
|
||||
setTimeout(delay_go, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
<rect id="rect1" y="40" width="10" height="10" fill="white">
|
||||
<animate id="anim" attributeName="x"
|
||||
|
Before Width: | Height: | Size: 947 B After Width: | Height: | Size: 1.1 KiB |
@ -2,13 +2,16 @@
|
||||
despite the many small-jump values before it, leaving the canvas blank. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="setTimeout('go()', 1000);"
|
||||
class="reftest-wait"
|
||||
>
|
||||
class="reftest-wait">
|
||||
<script>
|
||||
function go() {
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
function delay_go() {
|
||||
setTimeout(go, 1000);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_go, false);
|
||||
setTimeout(delay_go, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
<rect height="90" width="90" fill="green"></rect>
|
||||
<rect x="40" y="40" width="10" height="10" fill="red">
|
||||
|
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 862 B |
@ -3,9 +3,7 @@
|
||||
a little, and make sure the animation is frozen there. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="setTimeout('go()', 1100);"
|
||||
class="reftest-wait"
|
||||
>
|
||||
class="reftest-wait">
|
||||
<script>
|
||||
function go() {
|
||||
// Use try/catch, so that we make sure to remove the reftest-wait
|
||||
@ -26,6 +24,11 @@
|
||||
// jump to next value if the freeze didn't work.
|
||||
setTimeout('document.documentElement.removeAttribute("class")', 600);
|
||||
}
|
||||
function delay_go() {
|
||||
setTimeout(go, 1100);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_go, false);
|
||||
setTimeout(delay_go, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
<rect y="40" width="10" height="10" fill="blue">
|
||||
<animate id="rect" attributeName="x"
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
@ -3,9 +3,7 @@
|
||||
time, and see what happens. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="setTimeout('go()', 1100);"
|
||||
class="reftest-wait"
|
||||
>
|
||||
class="reftest-wait">
|
||||
<script>
|
||||
function go() {
|
||||
var rect1 = document.getElementById("rect1");
|
||||
@ -16,6 +14,11 @@
|
||||
// finish, if it's still going
|
||||
setTimeout('document.documentElement.removeAttribute("class")', 700);
|
||||
}
|
||||
function delay_go() {
|
||||
setTimeout(go, 1100);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_go, false);
|
||||
setTimeout(delay_go, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
<rect id="rect1" y="40" width="10" height="10" fill="blue">
|
||||
<animate id="anim" attributeName="x"
|
||||
|
Before Width: | Height: | Size: 903 B After Width: | Height: | Size: 1.0 KiB |
@ -3,9 +3,7 @@
|
||||
time, and see what happens. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="setTimeout('go()', 1100);"
|
||||
class="reftest-wait"
|
||||
>
|
||||
class="reftest-wait">
|
||||
<script>
|
||||
function go() {
|
||||
var rect1 = document.getElementById("rect1");
|
||||
@ -16,6 +14,11 @@
|
||||
// finish, if it's still going
|
||||
setTimeout('document.documentElement.removeAttribute("class")', 700);
|
||||
}
|
||||
function delay_go() {
|
||||
setTimeout(go, 1100);
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", delay_go, false);
|
||||
setTimeout(delay_go, 4000); // fallback for running outside reftest
|
||||
</script>
|
||||
<rect id="rect1" y="40" width="10" height="10" fill="blue">
|
||||
<animate id="anim" attributeName="x"
|
||||
|
Before Width: | Height: | Size: 917 B After Width: | Height: | Size: 1.1 KiB |
@ -11,8 +11,7 @@
|
||||
<![CDATA[
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
var svg = document.documentElement;
|
||||
|
Before Width: | Height: | Size: 861 B After Width: | Height: | Size: 870 B |
@ -11,8 +11,7 @@
|
||||
<![CDATA[
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
// in case we're not gecko
|
||||
setTimeout(doTest, 5000);
|
||||
setTimeout(doTest, 4000); // fallback for running outside reftest
|
||||
|
||||
function doTest() {
|
||||
var svg = document.documentElement;
|
||||
|
Before Width: | Height: | Size: 1022 B After Width: | Height: | Size: 1.0 KiB |