| Index: LayoutTests/fast/css/font-face-iframe-onload.html
|
| diff --git a/LayoutTests/fast/css/font-face-iframe-onload.html b/LayoutTests/fast/css/font-face-iframe-onload.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2e1cf2d997c034ab7a2c9cf206d5ac665c724ef5
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/font-face-iframe-onload.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<script>
|
| +description('Test for crbug.com/401846 - <iframe> using web font fails to trigger onload() in opener');
|
| +
|
| +window.jsTestIsAsync = true;
|
| +
|
| +window.onload = function() {
|
| + var loaded = 0;
|
| + for (var i = 0; i < 4; ++i) {
|
| + var iframe = document.createElement('iframe');
|
| + iframe.onload = function() {
|
| + loaded++;
|
| + if (loaded == 4)
|
| + finishJSTest();
|
| + };
|
| + iframe.src = 'resources/ahem.html';
|
| + document.body.appendChild(iframe);
|
| + }
|
| +};
|
| +</script>
|
|
|