| 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>
|
|
|