Bug 598798 followup: remove unnecessary reftest-wait in SVG <image> tests. r=roc a=tests-only
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 09 Dec 2010 00:46:12 -0800
changeset 58953 f4eb46861b6456dd691ccbf542dbf3e48e4d9c30
parent 58952 670e94973cab4940fcf51863ffa148b68da83040
child 58954 0c3b19f27abf718c3b1c1a832d5dd04413c17902
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersroc, tests-only
bugs598798
milestone2.0b8pre
Bug 598798 followup: remove unnecessary reftest-wait in SVG <image> tests. r=roc a=tests-only
layout/reftests/svg/image/image-preserveAspectRatio-01-ref.svg
layout/reftests/svg/image/image-preserveAspectRatio-01.svg
layout/reftests/svg/image/image-preserveAspectRatio-02-ref.svg
layout/reftests/svg/image/image-preserveAspectRatio-02.svg
--- a/layout/reftests/svg/image/image-preserveAspectRatio-01-ref.svg
+++ b/layout/reftests/svg/image/image-preserveAspectRatio-01-ref.svg
@@ -1,14 +1,10 @@
 <svg xmlns="http://www.w3.org/2000/svg"
-     xmlns:xlink="http://www.w3.org/1999/xlink"
-     class="reftest-wait"
-     onload="go()">
+     xmlns:xlink="http://www.w3.org/1999/xlink">
   <script xlink:href="util.js" type="text/javascript"/>
   <script>
-    function go() {
-      var grid = generateSymbolGrid("blueRect10x10.svg#root", 20, 40);
-      grid.setAttribute("transform", "translate(10, 10)");
-      document.documentElement.appendChild(grid);
-      document.documentElement.removeAttribute("class");
-    }
+    var grid = generateSymbolGrid("blueRect10x10.svg#root", 20, 40);
+    grid.setAttribute("transform", "translate(10, 10)");
+    document.documentElement.appendChild(grid);
+    document.documentElement.removeAttribute("class");
   </script>
 </svg>
--- a/layout/reftests/svg/image/image-preserveAspectRatio-01.svg
+++ b/layout/reftests/svg/image/image-preserveAspectRatio-01.svg
@@ -1,18 +1,14 @@
 <!-- Test to make sure "preserveAspectRatio" value is applied correctly on
      <image> tag, when the width:height ratio is less than the image's
      nativeWidth:nativeHeight  --> 
 <svg xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink"
-     class="reftest-wait"
-     onload="go()"
      style="image-rendering: -moz-crisp-edges">
   <script xlink:href="util.js" type="text/javascript"/>
   <script>
-    function go() {
-      var grid = generateImageGrid("blueRect10x10.png", 20, 40);
-      grid.setAttribute("transform", "translate(10, 10)");
-      document.documentElement.appendChild(grid);
-      document.documentElement.removeAttribute("class");
-    }
+    var grid = generateImageGrid("blueRect10x10.png", 20, 40);
+    grid.setAttribute("transform", "translate(10, 10)");
+    document.documentElement.appendChild(grid);
+    document.documentElement.removeAttribute("class");
   </script>
 </svg>
--- a/layout/reftests/svg/image/image-preserveAspectRatio-02-ref.svg
+++ b/layout/reftests/svg/image/image-preserveAspectRatio-02-ref.svg
@@ -1,14 +1,10 @@
 <svg xmlns="http://www.w3.org/2000/svg"
-     xmlns:xlink="http://www.w3.org/1999/xlink"
-     class="reftest-wait"
-     onload="go()">
+     xmlns:xlink="http://www.w3.org/1999/xlink">
   <script xlink:href="util.js" type="text/javascript"/>
   <script>
-    function go() {
-      var grid = generateSymbolGrid("blueRect10x10.svg#root", 40, 20);
-      grid.setAttribute("transform", "translate(10, 10)");
-      document.documentElement.appendChild(grid);
-      document.documentElement.removeAttribute("class");
-    }
+    var grid = generateSymbolGrid("blueRect10x10.svg#root", 40, 20);
+    grid.setAttribute("transform", "translate(10, 10)");
+    document.documentElement.appendChild(grid);
+    document.documentElement.removeAttribute("class");
   </script>
 </svg>
--- a/layout/reftests/svg/image/image-preserveAspectRatio-02.svg
+++ b/layout/reftests/svg/image/image-preserveAspectRatio-02.svg
@@ -1,18 +1,14 @@
 <!-- Test to make sure "preserveAspectRatio" value is applied correctly on
      <image> tag, when the width:height ratio is greater than the image's
      nativeWidth:nativeHeight  --> 
 <svg xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink"
-     class="reftest-wait"
-     onload="go()"
      style="image-rendering: -moz-crisp-edges">
   <script xlink:href="util.js" type="text/javascript"/>
   <script>
-    function go() {
-      var grid = generateImageGrid("blueRect10x10.png", 40, 20);
-      grid.setAttribute("transform", "translate(10, 10)");
-      document.documentElement.appendChild(grid);
-      document.documentElement.removeAttribute("class");
-    }
+    var grid = generateImageGrid("blueRect10x10.png", 40, 20);
+    grid.setAttribute("transform", "translate(10, 10)");
+    document.documentElement.appendChild(grid);
+    document.documentElement.removeAttribute("class");
   </script>
 </svg>