Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Jun 20, 2022
1 parent bb1023b commit a97f4c0
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 0 deletions.
96 changes: 96 additions & 0 deletions qa/html/fontdiff-Limb-diffenator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<html lang='Limb'>
<!--
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<p> <span style="font-weight:400">uni1923 &#x1923;</span> </p>
<p> <span style="font-weight:400">uni1924 &#x1924;</span> </p>
<p> <span style="font-weight:400">uni1925 &#x1925;</span> </p>
<p> <span style="font-weight:400">uni1926 &#x1926;</span> </p>
<p> <span style="font-weight:400">uni1929 &#x1929;</span> </p>
<p> <span style="font-weight:400">uni192B &#x192B;</span> </p>
<p> <span style="font-weight:400">uni1930 &#x1930;</span> </p>
<p> <span style="font-weight:400">uni1931 &#x1931;</span> </p>
<p> <span style="font-weight:400">uni1933 &#x1933;</span> </p>
<p> <span style="font-weight:400">uni1934 &#x1934;</span> </p>
<p> <span style="font-weight:400">uni1935 &#x1935;</span> </p>
<p> <span style="font-weight:400">uni1936 &#x1936;</span> </p>
<p> <span style="font-weight:400">uni1937 &#x1937;</span> </p>
<p> <span style="font-weight:400">uni1938 &#x1938;</span> </p>
<p> <span style="font-weight:400">uni1940 &#x1940;</span> </p>
<p> <span style="font-weight:400">uni1944 &#x1944;</span> </p>
<p> <span style="font-weight:400">uni1945 &#x1945;</span> </p>
<p> <span style="font-weight:400">uni1946 &#x1946;</span> </p>
<p> <span style="font-weight:400">uni1947 &#x1947;</span> </p>
<p> <span style="font-weight:400">uni1948 &#x1948;</span> </p>
<p> <span style="font-weight:400">uni1949 &#x1949;</span> </p>
<p> <span style="font-weight:400">uni194A &#x194A;</span> </p>
<p> <span style="font-weight:400">uni194B &#x194B;</span> </p>
<p> <span style="font-weight:400">uni194C &#x194C;</span> </p>
<p> <span style="font-weight:400">uni194D &#x194D;</span> </p>
<p> <span style="font-weight:400">uni194E &#x194E;</span> </p>
<p> <span style="font-weight:400">uni194F &#x194F;</span> </p>
<p> <span style="font-weight:400">&#x191A;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1909;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x190B;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1919;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x190F;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x190A;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1915;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1901;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x191B;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1904;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1906;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x190C;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x190D;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1916;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1903;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x190E;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1912;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1917;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1907;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1900;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1918;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x191D;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1914;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1908;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1902;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x191C;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1910;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1913;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x190E;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x191E;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1911;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x190C;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x191A;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1919;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x190B;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1915;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1905;&#x193B;</span> </p>
<p> <span style="font-weight:400">&#x1909;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1912;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1904;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1916;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x190D;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x191E;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x191D;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1901;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x190F;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1908;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1917;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1914;&#x193A;</span> </p>
<p> <span style="font-weight:400">&#x1903;&#x193A;</span> </p>
</html>
20 changes: 20 additions & 0 deletions qa/html/fontdiff-und-Limb_chars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<html lang='und'>
<!--
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<p>ᤀ ᤁ ᤂ ᤃ ᤄ ᤅ ᤆ ᤇ ᤈ ᤉ ᤊ ᤋ ᤌ ᤍ ᤎ ᤏᤐ ᤑ ᤒ ᤓ ᤔ ᤕ ᤖ ᤗ ᤘ ᤙ ᤚ ᤛ ᤜᤠ ᤡ ᤢ ᤣ ᤤ ᤥ ᤦ ᤧ ᤨ ᤩ ᤪ ᤫᤰ ᤱ ᤲ ᤳ ᤴ ᤵ ᤶ ᤷ ᤸ ᤹ ᤺ ᤻᥀ ᥄ ᥅ ᥆ ᥇ ᥈ ᥉ ᥊ ᥋ ᥌ ᥍ ᥎ ᥏</p>
</html>
34 changes: 34 additions & 0 deletions qa/shaping_tests/limbu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"tests": [
{
"expectation": "uni1916=0+625|uni1922=0@12,15+0|uni1915=2+604|uni1920=2@-43,0+0|uni191E=4+601|uni193A=4@-157,0+0|uni1911=6+811|uni1921=6+0",
"input": "ᤖᤢᤕᤠᤞ᤺ᤑᤡ",
"note": "Added by SIESTA",
"only": "NotoSansLimbu-Regular.ttf"
},
{
"expectation": "uni1911=0+811|uni193B=0@-123,0+0|uni1905=2+927|uni1927=2@-272,-15+0|uni190E=4+680|uni192A=4@-390,0+0|uni1910=6+747|uni192A=6@-410,0+0",
"input": "ᤑ᤻ᤅᤧᤎᤪᤐᤪ",
"note": "Added by SIESTA",
"only": "NotoSansLimbu-Regular.ttf"
},
{
"expectation": "uni1900=0+674|space=1+260|uni1901=2+605|space=3+260|uni1902=4+701|space=5+260|uni1903=6+595|space=7+260|uni1904=8+602|space=9+260|uni1905=10+927|space=11+260|uni1906=12+627|space=13+260|uni1907=14+632|space=15+260|uni1908=16+675|space=17+260|uni1909=18+583|space=19+260|uni190A=20+777|space=21+260|uni190B=22+553|space=23+260|uni190C=24+691|space=25+260|uni190D=26+625|space=27+260|uni190E=28+680|space=29+260|uni190F=30+605|uni1910=31+747|space=32+260|uni1911=33+811|space=34+260|uni1912=35+615|space=36+260|uni1913=37+700|space=38+260|uni1914=39+647|space=40+260|uni1915=41+604|space=42+260|uni1916=43+625|space=44+260|uni1917=45+656|space=46+260|uni1918=47+661|space=48+260|uni1919=49+636|space=50+260|uni191A=51+521|space=52+260|uni191B=53+631|space=54+260|uni191C=55+659",
"input": "ᤀ ᤁ ᤂ ᤃ ᤄ ᤅ ᤆ ᤇ ᤈ ᤉ ᤊ ᤋ ᤌ ᤍ ᤎ ᤏᤐ ᤑ ᤒ ᤓ ᤔ ᤕ ᤖ ᤗ ᤘ ᤙ ᤚ ᤛ ᤜ",
"only": "NotoSansLimbu-Regular.ttf",
"note": "From fontdiffenator (bases)"
},
{
"expectation": "uni191C=0+659|uni1920=0@-29,0+0|space=2+260|uni25CC=2+721|uni1921=2@-86,0+0|space=4+260|uni25CC=4+721|uni1922=4@-38,15+0|space=6+260|uni25CC=6+721|uni1923=6+286|space=8+260|uni25CC=8+721|uni1924=8+561|space=10+260|uni25CC=10+721|uni1925=10+286|space=12+260|uni25CC=12+721|uni1926=12+561|space=14+260|uni25CC=14+721|uni1927=14@-115,-15+0|space=16+260|uni25CC=16+721|uni1928=16@-86,0+0|space=18+260|uni25CC=18+721|uni1929=18+358|space=20+260|uni25CC=20+721|uni192A=20@-385,0+0|space=22+260|uni25CC=22+721|uni192B=22+410|uni1930=22+547|space=25+260|uni25CC=25+721|uni1931=25+264|space=27+260|uni25CC=27+721|uni1932=27@-170,0+0|space=29+260|uni25CC=29+721|uni1933=29+270|space=31+260|uni25CC=31+721|uni1934=31+477|space=33+260|uni25CC=33+721|uni1935=33+514|space=35+260|uni25CC=35+721|uni1936=35+503|space=37+260|uni25CC=37+721|uni1937=37+111|space=39+260|uni25CC=39+721|uni1938=39+324|space=41+260|uni25CC=41+721|uni1939=41+0|space=43+260|uni25CC=43+721|uni193A=43@-214,0+0|space=45+260|uni25CC=45+721|uni193B=45@-63,0+0|uni1940=47+550|space=48+260|uni1944=49+440|space=50+260|uni1945=51+480",
"input": "ᤜᤠ ᤡ ᤢ ᤣ ᤤ ᤥ ᤦ ᤧ ᤨ ᤩ ᤪ ᤫᤰ ᤱ ᤲ ᤳ ᤴ ᤵ ᤶ ᤷ ᤸ ᤹ ᤺ ᤻᥀ ᥄ ᥅",
"only": "NotoSansLimbu-Regular.ttf",
"note": "From fontdiffenator (marks)"
},
{
"expectation": "uni1946=0+549|space=1+260|uni1947=2+499|space=3+260|uni1948=4+497|space=5+260|uni1949=6+461|space=7+260|uni194A=8+500|space=9+260|uni194B=10+487|space=11+260|uni194C=12+492|space=13+260|uni194D=14+492|space=15+260|uni194E=16+497",
"input": "᥆ ᥇ ᥈ ᥉ ᥊ ᥋ ᥌ ᥍ ᥎",
"only": "NotoSansLimbu-Regular.ttf",
"note": "From fontdiffenator (numerals)"
}
]
}

0 comments on commit a97f4c0

Please sign in to comment.