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

Side by Side Diff: LayoutTests/fast/css/font-face-unicode-range.html

Issue 244253003: SimpleFontData::fillGlyphPage should not set zero for missing glyphs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
OLDNEW
1 <head> 1 <head>
2 <style> 2 <style>
3 div { border: 1px solid; padding: 0 8px; margin: 8px 0; } 3 div { border: 1px solid; padding: 0 8px; margin: 8px 0; }
4 span.ahem { font-family: 'Ahem'; } 4 span.ahem { font-family: 'Ahem'; }
5 span.courier { font-family: 'Courier', 'Courier New'; } 5 span.courier { font-family: 'Courier', 'Courier New'; }
6 6
7 @font-face { 7 @font-face {
8 font-family: 'test1'; 8 font-family: 'test1';
9 src: local('Times'); 9 src: local('Times');
10 } 10 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 @font-face { 56 @font-face {
57 font-family: 'test5'; 57 font-family: 'test5';
58 src: url('../../resources/Ahem.ttf'); 58 src: url('../../resources/Ahem.ttf');
59 unicode-range: U+0050-0058; 59 unicode-range: U+0050-0058;
60 } 60 }
61 @font-face { 61 @font-face {
62 font-family: 'test5'; 62 font-family: 'test5';
63 src: local('Courier'), local('Courier New'); 63 src: local('Courier'), local('Courier New');
64 unicode-range: U+0052-0055; 64 unicode-range: U+0052-0055;
65 } 65 }
66
67 @font-face {
68 font-family: 'test6';
69 src: local('Courier'), local('Courier New');
70 }
71 @font-face {
72 font-family: 'test6';
73 src: url('../../resources/Ahem.ttf');
74 unicode-range: U+0027; /* missing glyph */
75 }
66 </style> 76 </style>
67 </head> 77 </head>
68 <body onload="finished()"> 78 <body onload="finished()">
69 <p> 79 <p>
70 Each box should contain two identical lines 80 Each box should contain two identical lines
71 </p> 81 </p>
72 82
73 <div> 83 <div>
74 <p style="font-family: 'test1';"> 84 <p style="font-family: 'test1';">
75 ABCDEFGHIJKLMNOPQRSTUVWXYZ 85 ABCDEFGHIJKLMNOPQRSTUVWXYZ
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 </div> 117 </div>
108 118
109 <div> 119 <div>
110 <p style="font-family: 'test5';"> 120 <p style="font-family: 'test5';">
111 ABCDEFGHIJKLMNOPQRSTUVWXYZ 121 ABCDEFGHIJKLMNOPQRSTUVWXYZ
112 </p> 122 </p>
113 <p> 123 <p>
114 ABCDEFGHIJKLMNO<span class="ahem">PQ<span class="courier">RSTU</span >VWX</span>YZ 124 ABCDEFGHIJKLMNO<span class="ahem">PQ<span class="courier">RSTU</span >VWX</span>YZ
115 </p> 125 </p>
116 </div> 126 </div>
127
128 <div>
129 <p style="font-family: 'test6';">
130 '''
131 </p>
132 <p>
133 <span class="courier">'''</span>
134 </p>
135 </div>
117 <script> 136 <script>
118 function finished() 137 function finished()
119 { 138 {
120 if (window.testRunner) 139 if (window.testRunner)
121 testRunner.notifyDone(); 140 testRunner.notifyDone();
122 } 141 }
123 142
124 document.body.offsetTop; 143 document.body.offsetTop;
125 144
126 if (window.testRunner) 145 if (window.testRunner)
127 testRunner.waitUntilDone(); 146 testRunner.waitUntilDone();
128 </script> 147 </script>
129 </body> 148 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698