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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style></style>
3 <div id="container"></div>
4 <script>
5 // Regression test for https://crbug.com/655076. Test passes by not crashing in
6 // debug build.
7
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
11 }
12
13 let container = document.getElementById('container');
14 let font = 'slow-ahem-loading.cgi?delay=5000';
15
16 function makeSpan(family) {
17 document.styleSheets[0].insertRule(
18 '@font-face { font-family: ' + family + '; src: url(' + font + '); }', 0);
19 let span = document.createElement('span');
20 span.style.fontFamily = family;
21 span.textContent = 'test';
22 container.appendChild(span);
23 }
24
25 window.onload = () => {
26 makeSpan('ahem-1');
27 setTimeout(() => {
28 makeSpan('ahem-2');
29 testRunner.notifyDone();
30 }, 4000);
31 };
32 </script>
OLDNEW
« 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