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

Unified Diff: LayoutTests/fast/css/font-face-iframe-onload.html

Issue 457273002: Webfonts should not block load event for more than one frame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/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 - &lt;iframe&gt; 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>
« no previous file with comments | « no previous file | LayoutTests/fast/css/font-face-iframe-onload-expected.txt » ('j') | Source/core/css/FontLoader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698