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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/webfont/fallback-font-while-loading.html

Issue 1483543002: Always use user preference font before system fallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update bug # for slow expectations Created 5 years 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
OLDNEW
1 <style> 1 <style>
2 @font-face { 2 @font-face {
3 font-family: webfont; 3 font-family: webfont;
4 src: url(slow-ahem-loading.cgi); 4 src: url(slow-ahem-loading.cgi);
5 } 5 }
6 </style> 6 </style>
7 <p> 7 <p>
8 This test checks that the fallback font is used for layout while a webfont is lo ading. 8 This test checks that the fallback font is used for layout while a webfont is lo ading.
9 </p> 9 </p>
10 Target: 10 Target:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 if (target.offsetWidth == reference.offsetWidth && target.offsetHeight == re ference.offsetHeight) { 48 if (target.offsetWidth == reference.offsetWidth && target.offsetHeight == re ference.offsetHeight) {
49 result.innerText += 'PASS: The width of target text and reference text i s the same.\n'; 49 result.innerText += 'PASS: The width of target text and reference text i s the same.\n';
50 } else { 50 } else {
51 result.innerText += 'FAIL: The width of target text and reference text i s different: ' 51 result.innerText += 'FAIL: The width of target text and reference text i s different: '
52 + target.offsetWidth + ' != ' + reference.offsetWidth + ' or ' + tar get.offsetHeight + ' != ' + reference.offsetHeight + '\n'; 52 + target.offsetWidth + ' != ' + reference.offsetWidth + ' or ' + tar get.offsetHeight + ' != ' + reference.offsetHeight + '\n';
53 } 53 }
54 } 54 }
55 55
56 checkSize('arial'); 56 checkSize('arial');
57 checkSize('serif'); 57 checkSize('serif');
58 // FIXME: checkSize('default'); 58 checkSize('default');
59 // FIXME: checkSize('monospace'); 59 // FIXME: checkSize('monospace');
60 </script> 60 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698