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

Side by Side Diff: LayoutTests/fast/css/resource-timing-for-unloaded-font.html

Issue 355973002: Unloaded web fonts should not report Resource Timing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/resource-timing-for-unloaded-font-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 <script src="../../resources/js-test.js"></script>
3 <style>
4 @font-face {
5 font-family: foo;
6 src: url(file:///no-such-font.ttf);
7 }
8 </style>
9
10 <script>
11 description('Unloaded web fonts should not report Resource Timing');
12
13 window.jsTestIsAsync = true;
14
15 function getDocumentFontFaces() {
16 var faces = [];
17 document.fonts.forEach(function(face) { faces.push(face); });
18 return faces;
19 }
20
21 function verify() {
22 shouldBeEqualToString('getDocumentFontFaces()[0].status', 'unloaded');
23 entries = performance.getEntriesByName('file:///no-such-font.ttf');
24 shouldBe('entries.length', '0');
25 finishJSTest();
26 }
27
28 if (location.hash == '#check') {
29 setTimeout(verify, 10);
30 } else {
31 location.hash = 'check';
32 location.reload();
33 }
34 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/resource-timing-for-unloaded-font-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698