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

Unified Diff: LayoutTests/svg/W3C-SVG-1.1-SE/text-intro-09-b.svg

Issue 243453003: Proper unicode-range font loading behavior (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/W3C-SVG-1.1-SE/text-intro-09-b.svg
diff --git a/LayoutTests/svg/W3C-SVG-1.1-SE/text-intro-09-b.svg b/LayoutTests/svg/W3C-SVG-1.1-SE/text-intro-09-b.svg
index d12210214ec7599e0d0f15e46d9b6059031a492c..e8c80f8e613b69c6d14c72dedea35689ce2a8c4e 100644
--- a/LayoutTests/svg/W3C-SVG-1.1-SE/text-intro-09-b.svg
+++ b/LayoutTests/svg/W3C-SVG-1.1-SE/text-intro-09-b.svg
@@ -86,4 +86,15 @@
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
+ <script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ pendingFonts = 3;
+ document.fonts.onloadingdone = document.fonts.onloadingerror = function(e) {
+ pendingFonts -= e.fontfaces.length;
+ if (pendingFonts == 0)
+ testRunner.notifyDone();
+ };
+ }
+ </script>
</svg>

Powered by Google App Engine
This is Rietveld 408576698