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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/fontfaceset-download-error.html

Issue 1933343002: Do not accept CSS identifiers for format() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 7 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/fast/css/fontfaceset-multiple-families.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <style> 4 <style>
5 /* Test 1: Invalid font data */ 5 /* Test 1: Invalid font data */
6 @font-face { 6 @font-face {
7 font-family: myfont1; 7 font-family: myfont1;
8 src: url('resources/invalidfont.png') format(opentype); 8 src: url('resources/invalidfont.png') format("opentype");
9 } 9 }
10 10
11 /* Test 2: Download error */ 11 /* Test 2: Download error */
12 @font-face { 12 @font-face {
13 font-family: myfont2; 13 font-family: myfont2;
14 src: url('resources/DownLoadErrorAhem.otf'); 14 src: url('resources/DownLoadErrorAhem.otf');
15 } 15 }
16 16
17 /* Test 3: Empty data url */ 17 /* Test 3: Empty data url */
18 @font-face { 18 @font-face {
19 font-family: myfont3; 19 font-family: myfont3;
20 src: url(data:application/x-truetype-font,) format(truetype); 20 src: url(data:application/x-truetype-font,) format("truetype");
21 } 21 }
22 22
23 /* Test 4: Download error followed by existing local font */ 23 /* Test 4: Download error followed by existing local font */
24 @font-face { 24 @font-face {
25 font-family: myfont4; 25 font-family: myfont4;
26 src: url('resources/DownLoadErrorAhem.otf'), local('Courier New'); 26 src: url('resources/DownLoadErrorAhem.otf'), local('Courier New');
27 } 27 }
28 28
29 /* Test 5: Multiple errors */ 29 /* Test 5: Multiple errors */
30 @font-face { 30 @font-face {
31 font-family: myfont5; 31 font-family: myfont5;
32 src: url('resources/DownLoadErrorAhem.otf'), url(data:application/x-truetype -font,) format(truetype); 32 src: url('resources/DownLoadErrorAhem.otf'), url(data:application/x-truetype -font,) format("truetype");
33 } 33 }
34 </style> 34 </style>
35 <script> 35 <script>
36 description('Test download error cases.'); 36 description('Test download error cases.');
37 37
38 window.jsTestIsAsync = true; 38 window.jsTestIsAsync = true;
39 39
40 function runTests() { 40 function runTests() {
41 document.fonts.addEventListener('loading', onLoading); 41 document.fonts.addEventListener('loading', onLoading);
42 document.fonts.addEventListener('loadingdone', onLoadingDone); 42 document.fonts.addEventListener('loadingdone', onLoadingDone);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 if (document.fonts) 78 if (document.fonts)
79 runTests(); 79 runTests();
80 else { 80 else {
81 testFailed('document.fonts does not exist'); 81 testFailed('document.fonts does not exist');
82 finishJSTest(); 82 finishJSTest();
83 } 83 }
84 </script> 84 </script>
85 </head> 85 </head>
86 </html> 86 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/fontfaceset-multiple-families.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698