svg/webarchive tests are flakey under guard malloc
[WebKit-https.git] / LayoutTests / svg / webarchive / svg-feimage-subresources.svg
index 09ee5ba3ec7068f9ca32d04a5dae41d7dd56d032..068a9b3dcd091cd08e8a922ed14bc90e8972981d 100644 (file)
@@ -1,10 +1,16 @@
 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <script>
-    if (window.layoutTestController)
-        layoutTestController.dumpDOMAsWebArchive();
-  </script>
   <filter id="MyFilter">
     <feImage xlink:href="resources/green-checker.png" />
   </filter>
   <rect id="rect" width="100" height="100" fill="red" filter="url(#MyFilter)"/>
   <filter id="MyFilter">
     <feImage xlink:href="resources/green-checker.png" />
   </filter>
   <rect id="rect" width="100" height="100" fill="red" filter="url(#MyFilter)"/>
+  <script>
+    if (window.layoutTestController) {
+        layoutTestController.waitUntilDone();
+
+        setTimeout(function() {
+            layoutTestController.dumpDOMAsWebArchive();
+            layoutTestController.notifyDone();
+        }, 0);
+    }
+  </script>
 </svg>
 </svg>