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

Unified Diff: LayoutTests/svg/custom/non-scaling-stroke-update.svg

Issue 183703003: Remove more testRunner.display() calls from LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ditch fast/text/font-initial changes too Created 6 years, 10 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/non-scaling-stroke-update.svg
diff --git a/LayoutTests/svg/custom/non-scaling-stroke-update.svg b/LayoutTests/svg/custom/non-scaling-stroke-update.svg
index 5bce3f79ebee10920240a12c5f08427230551baf..cc47a265f703c79b542dd0a858e14e0a0ca3feeb 100644
--- a/LayoutTests/svg/custom/non-scaling-stroke-update.svg
+++ b/LayoutTests/svg/custom/non-scaling-stroke-update.svg
@@ -7,18 +7,17 @@
<script>
if (window.testRunner) {
- testRunner.display();
testRunner.waitUntilDone();
- setTimeout(runTest, 0);
- } else {
- setTimeout(runTest, 200);
}
+ window.requestAnimationFrame(function() {
+ setTimeout(runTest, 0);
+ });
function runTest() {
- document.getElementById('clear_rect').setAttribute('fill', 'white');
- document.getElementById('rect').setAttribute('vector-effect', 'non-scaling-stroke');
- if (window.testRunner)
- testRunner.notifyDone();
+ document.getElementById('clear_rect').setAttribute('fill', 'white');
+ document.getElementById('rect').setAttribute('vector-effect', 'non-scaling-stroke');
+ if (window.testRunner)
+ testRunner.notifyDone();
}
</script>
</svg>
« no previous file with comments | « LayoutTests/scrollbars/scrollbar-percent-padding-crash.html ('k') | LayoutTests/svg/custom/stale-resource-data-crash.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698