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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html

Issue 2419753002: Prevent FontResource load limit timers from restarting during loading (Closed)
Patch Set: new LoadLimitState, text-only test Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html b/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html
new file mode 100644
index 0000000000000000000000000000000000000000..94fef68e3acea0b5c6ab407243e3230f694e284a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<style></style>
+<div id="container"></div>
+<script>
+// Regression test for https://crbug.com/655076. Test passes by not crashing in
+// debug build.
+
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+let container = document.getElementById('container');
+let font = 'slow-ahem-loading.cgi?delay=5000';
+
+function makeSpan(family) {
+ document.styleSheets[0].insertRule(
+ '@font-face { font-family: ' + family + '; src: url(' + font + '); }', 0);
+ let span = document.createElement('span');
+ span.style.fontFamily = family;
+ span.textContent = 'test';
+ container.appendChild(span);
+}
+
+window.onload = () => {
+ makeSpan('ahem-1');
+ setTimeout(() => {
+ makeSpan('ahem-2');
+ testRunner.notifyDone();
+ }, 4000);
+};
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/webfont/crbug-655076-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698