Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / font-face-iframe-onload.html
blob2e1cf2d997c034ab7a2c9cf206d5ac665c724ef5
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description('Test for crbug.com/401846 - &lt;iframe&gt; using web font fails to trigger onload() in opener');
6 window.jsTestIsAsync = true;
8 window.onload = function() {
9 var loaded = 0;
10 for (var i = 0; i < 4; ++i) {
11 var iframe = document.createElement('iframe');
12 iframe.onload = function() {
13 loaded++;
14 if (loaded == 4)
15 finishJSTest();
17 iframe.src = 'resources/ahem.html';
18 document.body.appendChild(iframe);
21 </script>