https://bugs.webkit.org/show_bug.cgi?id=77092
Reviewed by Zoltan Herczeg.
Fix flakey tests, by moving the <script> that dumps the test as webarchive, after the actual content.
* svg/webarchive/svg-cursor-subresources-expected.webarchive:
* svg/webarchive/svg-cursor-subresources.svg:
* svg/webarchive/svg-feimage-subresources-expected.webarchive:
* svg/webarchive/svg-feimage-subresources.svg:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105992
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-26 Nikolas Zimmermann <nzimmermann@rim.com>
+
+ svg/webarchive tests are flakey under guard malloc
+ https://bugs.webkit.org/show_bug.cgi?id=77092
+
+ Reviewed by Zoltan Herczeg.
+
+ Fix flakey tests, by moving the <script> that dumps the test as webarchive, after the actual content.
+
+ * svg/webarchive/svg-cursor-subresources-expected.webarchive:
+ * svg/webarchive/svg-cursor-subresources.svg:
+ * svg/webarchive/svg-feimage-subresources-expected.webarchive:
+ * svg/webarchive/svg-feimage-subresources.svg:
+
2012-01-26 Anton Muhin <antonm@chromium.org>
Unreviewed rebaseline after http://trac.webkit.org/changeset/105977.
<dict>
<key>WebResourceData</key>
<string><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
- <script>
- if (window.layoutTestController)
- layoutTestController.dumpDOMAsWebArchive();
- </script>
<cursor id="mycursor" xlink:href="resources/green-checker.png"/>
<rect style="cursor: url(#mycursor)" width="100" height="100" fill="white" stroke="blue"/>
<text x="10" y="130">Hover over the rect, you should see a (large) custom cursor</text>
+ <script>
+ if (window.layoutTestController) {
+ layoutTestController.waitUntilDone();
+
+ setTimeout(function() {
+ layoutTestController.dumpDOMAsWebArchive();
+ layoutTestController.notifyDone();
+ }, 0);
+ }
+ </script>
</svg></string>
<key>WebResourceFrameName</key>
<string></string>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
- <script>
- if (window.layoutTestController)
- layoutTestController.dumpDOMAsWebArchive();
- </script>
<cursor id="mycursor" xlink:href="resources/green-checker.png" />
<rect style="cursor: url(#mycursor)" width="100" height="100" fill="white" stroke="blue" />
<text x="10" y="130">Hover over the rect, you should see a (large) custom cursor</text>
+ <script>
+ if (window.layoutTestController) {
+ layoutTestController.waitUntilDone();
+
+ setTimeout(function() {
+ layoutTestController.dumpDOMAsWebArchive();
+ layoutTestController.notifyDone();
+ }, 0);
+ }
+ </script>
</svg>
<dict>
<key>WebResourceData</key>
<string><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)"/>
+ <script>
+ if (window.layoutTestController) {
+ layoutTestController.waitUntilDone();
+
+ setTimeout(function() {
+ layoutTestController.dumpDOMAsWebArchive();
+ layoutTestController.notifyDone();
+ }, 0);
+ }
+ </script>
</svg></string>
<key>WebResourceFrameName</key>
<string></string>
<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)"/>
+ <script>
+ if (window.layoutTestController) {
+ layoutTestController.waitUntilDone();
+
+ setTimeout(function() {
+ layoutTestController.dumpDOMAsWebArchive();
+ layoutTestController.notifyDone();
+ }, 0);
+ }
+ </script>
</svg>