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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/fallback-myanmar.html

Issue 2530153002: Improve fallback for Burmese with leading punctuation + spacing mark (Closed)
Patch Set: Reintroduce null hint check Created 4 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <meta charset="UTF-8">
4 <head>
5 <script type="text/javascript" src="../../http/tests/inspector-protocol/insp ector-protocol-test.js"></script>
6 <script type="text/javascript" src="../../http/tests/inspector-protocol/css- protocol-test.js"></script>
7 <script type="text/javascript" src="../../http/tests/inspector-protocol/dom- protocol-test.js"></script>
8 <script type="text/javascript" src="resources/layout-font-test.js"></script>
9 </head>
10 <script>
11 function postTestHookWithFontResults(results) {
12 var el = document.createElement("div");
13 var passed = (results['#myanmar'].length == 1 &&
14 results['#myanmar'][0].familyName.includes("Myanmar")) ||
15 (results['#myanmar'].length == 2 &&
16 results['#myanmar'][0].glyphCount == 2 &&
17 results['#myanmar'][1].glyphCount > 10 &&
18 results['#myanmar'][1].familyName.includes("Myanmar"));
19 el.innerHTML = passed ? "PASS" : "FAIL";
20 document.body.appendChild(el);
21 }
22 </script>
23 <body>
24 Test passes if a maxmium of the two first glyphs are notdef's (for Myanmar f onts that do not combine a left quote
25 with a Myanmar spacing mark and the rest of the run is shaped, given a syste m Myanmar font is available.
26 <div class="test">
27 <div lang="my" id="myanmar">‘ေရွးျမန္မာမင္းေတြလက္ထက္က</div>
28 </div>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698