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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/fallback-myanmar.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/fallback-myanmar.html b/third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/fallback-myanmar.html
new file mode 100644
index 0000000000000000000000000000000000000000..b286bce29ccad824ced42d26345f4f2edadbe6a2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/layout-fonts/fallback-myanmar.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<meta charset="UTF-8">
+<head>
+ <script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
+ <script type="text/javascript" src="../../http/tests/inspector-protocol/css-protocol-test.js"></script>
+ <script type="text/javascript" src="../../http/tests/inspector-protocol/dom-protocol-test.js"></script>
+ <script type="text/javascript" src="resources/layout-font-test.js"></script>
+</head>
+<script>
+function postTestHookWithFontResults(results) {
+ var el = document.createElement("div");
+ var passed = (results['#myanmar'].length == 1 &&
+ results['#myanmar'][0].familyName.includes("Myanmar")) ||
+ (results['#myanmar'].length == 2 &&
+ results['#myanmar'][0].glyphCount == 2 &&
+ results['#myanmar'][1].glyphCount > 10 &&
+ results['#myanmar'][1].familyName.includes("Myanmar"));
+ el.innerHTML = passed ? "PASS" : "FAIL";
+ document.body.appendChild(el);
+}
+</script>
+<body>
+ Test passes if a maxmium of the two first glyphs are notdef's (for Myanmar fonts that do not combine a left quote
+ with a Myanmar spacing mark and the rest of the run is shaped, given a system Myanmar font is available.
+ <div class="test">
+ <div lang="my" id="myanmar">‘ေရွးျမန္မာမင္းေတြလက္ထက္က</div>
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698