Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: LayoutTests/svg/custom/resource-client-removal.svg

Issue 316193003: Fix some async repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline more tests Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/custom/resource-client-removal.svg
diff --git a/LayoutTests/svg/custom/resource-client-removal.svg b/LayoutTests/svg/custom/resource-client-removal.svg
index 230bcd3691b28ca28377c6eb7ab6b1d20d117cd0..0bf7b96c0f6d806ec26eb081f70bcaf47b47f3a4 100644
--- a/LayoutTests/svg/custom/resource-client-removal.svg
+++ b/LayoutTests/svg/custom/resource-client-removal.svg
@@ -2,11 +2,10 @@
<script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
<script>
<![CDATA[
+window.testIsAsync = true;
function repaintTest() {
container = document.getElementById("inneruse");
stop = document.getElementById("offset");
- if (window.testRunner)
- testRunner.waitUntilDone();
setTimeout(offset, 0);
}
var turns = 5;
@@ -16,8 +15,8 @@ function offset(){
turns--;
if (turns > 0)
window.setTimeout("offset()", 0)
- else if (window.testRunner)
- testRunner.notifyDone();
+ else
+ finishRepaintTest();
}
]]>
</script>
« no previous file with comments | « LayoutTests/svg/custom/mask-invalidation.svg ('k') | LayoutTests/svg/custom/resource-client-removal-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698