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

Side by Side Diff: LayoutTests/http/tests/misc/SVGFont-delayed-load.html

Issue 656913006: Remove SVG fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update tests for landing Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <p>This tests that the onload handler for an iframe is delayed by a pending SVGF ont load.</p>
2 <pre id="console"></pre>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
6
7 function log(msg)
8 {
9 document.getElementById('console').appendChild(document.createTextNode(m sg + "\n"));
10 }
11
12 var onloadFired = false;
13
14 iframe = document.createElement('iframe');
15 iframe.onload = function() {
16 onloadFired = true;
17 };
18 iframe.src = "resources/SVGFont-delayed-loader.svg";
19 document.body.appendChild(iframe);
20
21 function contentLoaded()
22 {
23 if (onloadFired)
24 log("FAIL: the onload event fired before the SVGFont load finished") ;
25 else
26 log("PASS: the onload event did not fire.");
27
28 // Stop the infinite load.
29 iframe.contentWindow.stop();
30 }
31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698