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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/as-image/data-font-in-css-invalid-data-url-crash.html

Issue 1832333003: (1) Finish font subresource loading of SVG synchronously in SVGImage::dataChanged() Base URL: https://chromium.googlesource.com/chromium/src.git@SVG_new2_0
Patch Set: Rebase. Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 description("Test that loading of SVG that contains a font data URL completes be fore <img> and <body> onload handler is called, and thus doesn't cause assertion failure.");
6 jsTestIsAsync = true;
7
8 var count = 0;
9 function doTest() {
10 var svg = document.getElementById('img');
11 var canvas = document.createElement("canvas");
12 var ctx = canvas.getContext("2d");
13 ctx.drawImage(svg, 0, 0);
14
15 // Test finishes when both <body> and <img>'s onload() are called.
16 ++count;
17 if (count == 2) {
18 finishJSTest();
19 }
20 }
21 </script>
22 </head>
23 <body onload="debug('onload of body'); doTest()">
24 <img src="resources/data-font-in-css-invalid-data-url.svg" id="img" onload="debu g('onload of img'); doTest()">
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698