Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'

This commit is contained in:
WPT Sync Bot 2022-01-20 04:38:55 +00:00 committed by cybai
parent 4401622eb1
commit b77ad115f6
16832 changed files with 270819 additions and 87621 deletions

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-property">
<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
<style>
div {
white-space: pre-wrap;
font-size: 24023in;
}
</style>
<div>A A A</div>

View file

@ -6,7 +6,6 @@
<link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp" />
<link rel="help" title="CSS Text Level 3: 10.2. Hanging Punctuation: the hanging-punctuation property" href="http://www.w3.org/TR/css-text-3/#hanging-punctuation" />
<link rel="match" href="reference/hanging-punctuation-allow-end-001-ref.xht"/>
<meta name="flags" content="font" />
<meta name="assert" content="This property determines whether a punctuation mark, if one is present, may be placed outside the line box (or in the indent) at the start or at the end of a full line of text." />
<style type="text/css">
<![CDATA[

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Text Test: allowed ending hanging-punctuation does not affect block box boundary</title>
<!--
Issue 4222: [css-text-3] hanging-punctuation effect on inline/block bounds
https://github.com/w3c/csswg-drafts/issues/4222
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#hanging">
<link rel="match" href="reference/hanging-punctuation-block-bound-001-ref.html">
<meta content="" name="flags">
<meta content="This test checks that hanging punctuations has no effect on the boundary of a block box. The background of a block box does not include hanging punctuations." name="assert">
<style>
div
{
background-color: lime;
border: black solid 3px;
font-family: monospace;
font-size: 60px;
line-height: 1.5em; /* computes to 90px */
hanging-punctuation: allow-end;
width: 240px;
}
</style>
<div>まだよくています。しかし特</div>

View file

@ -6,7 +6,6 @@
<link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp" />
<link rel="help" title="CSS Text Level 3: 10.2. Hanging Punctuation: the hanging-punctuation property" href="http://www.w3.org/TR/css-text-3/#hanging-punctuation" />
<link rel="match" href="reference/hanging-punctuation-first-001-ref.xht"/>
<meta name="flags" content="font" />
<meta name="assert" content="This property determines whether a punctuation mark, if one is present, may be placed outside the line box (or in the indent) at the start or at the end of a full line of text." />
<style type="text/css">
<![CDATA[

View file

@ -6,7 +6,6 @@
<link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp" />
<link rel="help" title="CSS Text Level 3: 10.2. Hanging Punctuation: the hanging-punctuation property" href="http://www.w3.org/TR/css-text-3/#hanging-punctuation" />
<link rel="match" href="reference/hanging-punctuation-force-end-001-ref.xht"/>
<meta name="flags" content="font" />
<meta name="assert" content="This property determines whether a punctuation mark, if one is present, may be placed outside the line box (or in the indent) at the start or at the end of a full line of text." />
<style type="text/css">
<![CDATA[

View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Text Test: allowed ending hanging-punctuation affect inline box boundary</title>
<!--
Issue 4222: [css-text-3] hanging-punctuation effect on inline/block bounds
https://github.com/w3c/csswg-drafts/issues/4222
-->
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#hanging">
<link rel="match" href="reference/hanging-punctuation-inline-bound-001-ref.html">
<meta content="" name="flags">
<meta content="This test checks that background of inline boxes includes hanging punctuations and text-selecting (or highlighting) inline boxes will include hanging punctuations." name="assert">
<style>
div
{
font-family: monospace;
font-size: 60px;
line-height: 1.5em; /* computes to 90px */
hanging-punctuation: allow-end;
width: 245px;
}
span
{
background-color: lime;
border: black solid 3px;
}
</style>
<div><span>まだよくています。しかし特</span></div>

View file

@ -6,7 +6,6 @@
<link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp" />
<link rel="help" title="CSS Text Level 3: 10.2. Hanging Punctuation: the hanging-punctuation property" href="http://www.w3.org/TR/css-text-3/#hanging-punctuation" />
<link rel="match" href="reference/hanging-punctuation-last-001-ref.xht"/>
<meta name="flags" content="font" />
<meta name="assert" content="This property determines whether a punctuation mark, if one is present, may be placed outside the line box (or in the indent) at the start or at the end of a full line of text." />
<style type="text/css">
<![CDATA[

View file

@ -0,0 +1,48 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Reference Test</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style>
div
{
font-family: monospace;
font-size: 60px;
line-height: 1.5em; /* computes to 90px */
}
/*
We draw the box (perfectly fitted to the content
in the block axis, because it has the same content)
but not the text.
*/
div#box-drawn-under
{
background-color: lime;
border: black solid 3px;
color: transparent;
position: absolute;
width: 240px;
z-index: -1;
}
/*
We draw the text, but into a wider box so
the period will fit, and overlap it with
the previously-drawn box.
*/
div#text-drawn-over
{
border: transparent solid 3px;
width: 300px;
}
</style>
<div id="box-drawn-under">まだよく<br>ています。</div>
<div id="text-drawn-over">まだよく<br>ています。<br>しかし特</div>

View file

@ -0,0 +1,39 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Reference Test</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style>
div
{
font-family: monospace;
font-size: 60px;
line-height: 1.5em; /* computes to 90px */
}
span
{
background-color: lime;
border-bottom: black solid 3px;
border-top: black solid 3px;
}
span#first
{
border-left: black solid 3px;
}
span#third
{
border-right: black solid 3px;
}
</style>
<div><span id="first">まだよく</span><br>
<span id="second">ています。</span><br>
<span id="third">しかし特</span></div>

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text test: hyphenate-character</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character">
<link rel="match" href="reference/hyphenate-character-001-ref.html">
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break">
<style>
div {
font: 16px monospace;
width: 4.5ch; /* wide enough that the first potential break in "re-al-iza-tion" should NOT be used */
hyphens: manual;
hyphenate-character: "";
}
</style>
<p>Test passes if the words below are broken at hyphenation positions but <b>no visible hyphens appear</b>.
<div lang="en">
im&shy;ple&shy;men&shy;ta&shy;tion<br><br>
ini&shy;tial&shy;iza&shy;tion<br><br>
re&shy;al&shy;iza&shy;tion<br><br>
hy&shy;phen&shy;ation
</div>

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text test: hyphenate-character</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character">
<link rel="match" href="reference/hyphenate-character-001-ref.html">
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break">
<style>
div {
font: 16px monospace;
width: 4.5ch; /* wide enough that the first potential break in "re-al-iza-tion" should NOT be used */
hyphens: auto; /* assuming the usual en_US patterns, should generate the same breaks as the manual
soft hyphens in test 001. */
hyphenate-character: "";
}
</style>
<p>Test passes if the words below are broken at hyphenation positions but <b>no visible hyphens appear</b>.
<div lang="en">
implementation<br><br>
initialization<br><br>
realization<br><br>
hyphenation
</div>

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text test: hyphenate-character</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character">
<link rel="match" href="reference/hyphenate-character-003-ref.html">
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break">
<style>
div {
font: 16px monospace;
width: 5.5ch; /* wide enough that the first potential break in "re-al-iza-tion" should NOT be used */
hyphens: manual;
hyphenate-character: "\2022";
}
</style>
<p>Test passes if the words below are hyphenated <b>using a bullet (&#x2022;) character</b>.
<div lang="en">
im&shy;ple&shy;men&shy;ta&shy;tion<br><br>
ini&shy;tial&shy;iza&shy;tion<br><br>
re&shy;al&shy;iza&shy;tion<br><br>
hy&shy;phen&shy;ation
</div>

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text test: hyphenate-character</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character">
<link rel="match" href="reference/hyphenate-character-004-ref.html">
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break">
<style>
div {
font: 16px monospace;
width: 6.5ch; /* wide enough that the last potential break in "im-ple-men-ta-tion" should NOT be used */
hyphens: manual;
hyphenate-character: "/-/";
}
</style>
<p>Test passes if the words below are hyphenated <b>using the string "/-/"</b>.
<div lang="en">
im&shy;ple&shy;men&shy;ta&shy;tion<br><br>
ini&shy;tial&shy;iza&shy;tion<br><br>
re&shy;al&shy;iza&shy;tion<br><br>
hy&shy;phen&shy;ation
</div>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text 6.1. Hyphenation Control: the hyphens property</title>
<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
<style>
code {
display: block;
hyphens: manual;
border: 1px solid black;
/* Prefer Courier New if available, as otherwise Menlo may be used,
and its HYPHEN and HYPHEN-MINUS glyphs don't match. */
font-family: Courier New, Courier, monospace;
}
</style>
</head>
<body lang="en-us">
<!--
Hyphenation opportunities of the texts in this test are as follows,
frag[A]ilis[A]tic[C]ex[A]pi[A]ali
where [A] is an automatic hyphen, and [C] is a conditional hyphen.
In this test, we set width to somewhere after the conditional hyphen,
then we see if automatic hyphen breaks are ignored correctly.
-->
<code style="width:12ch;">
fragilistic-<br />expiali
</code>
<br />
<code style="width:14ch;">
fragilistic-<br />expiali
</code>
<br />
<code style="width:16ch;">
fragilistic-<br />expiali
</code>
</body>
</html>

View file

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text 6.1. Hyphenation Control: the hyphens property</title>
<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-hyphens-auto">
<link rel="match" href="hyphens-auto-control-ref.html">
<meta name="assert" content="Test checks that automatic hyphenation opportunities within a word
must be ignored if the word contains a conditional hyphen (&shy; or U+00AD), in favor of the
conditional hyphen(s).">
<style>
code {
display: block;
hyphens: auto;
border: 1px solid black;
/* Prefer Courier New if available, as otherwise Menlo may be used,
and its HYPHEN and HYPHEN-MINUS glyphs don't match. */
font-family: Courier New, Courier, monospace;
}
</style>
</head>
<body lang="en-us">
<!--
Hyphenation opportunities of the texts in this test are as follows,
frag[A]ilis[A]tic[C]ex[A]pi[A]ali
where [A] is an automatic hyphen, and [C] is a conditional hyphen.
In this test, we set width to somewhere after the conditional hyphen,
then we see if automatic hyphen breaks are ignored correctly.
-->
<code style="width:12ch;">
fragilistic&shy;expiali
</code>
<br />
<code style="width:14ch;">
fragilistic&shy;expiali
</code>
<br />
<code style="width:16ch;">
fragilistic&shy;expiali
</code>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!doctype html>
<meta charset=utf-8>
<title>CSS Test Reference</title>
<style>
div {
/* No hyphens means the min-content is the whole string in this case */
width: min-content;
border: 1px solid green;
}
</style>
<div>2020-12-12</div>

View file

@ -0,0 +1,10 @@
<!doctype html>
<meta charset=utf-8>
<title>CSS Test Reference</title>
<style>
div {
width: min-content;
border: 1px solid green;
}
</style>
<div>2020-<br>12-12</div>

View file

@ -0,0 +1,24 @@
<!doctype html>
<meta charset=utf-8>
<title>min-content size should match hyphenation</title>
<link rel=author href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel=author href="https://mozilla.org" title="Mozilla">
<link rel=help href="https://drafts.csswg.org/css-text-3/#hyphens-property">
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1674204">
<!--
It's ok to either break or not on the explicit hyphens, but whatever it does
it should match the min-content size
-->
<link rel=match href="hyphens-auto-min-content-ref-1.html">
<link rel=match href="hyphens-auto-min-content-ref-2.html">
<style>
div {
width: min-content;
hyphens: auto;
border: 1px solid green;
}
</style>
<div>2020-12-12</div>

View file

@ -0,0 +1,34 @@
<!doctype html>
<html lang="en" class="reftest-wait">
<link rel="author" title="Dominik Röttsches" href="mailto:drott@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#hyphenation">
<link rel="match" href="reference/hyphens-character-ref.html">
<meta charset="utf-8" />
<meta content="This test ensure that actual characters are show for the hyphen,
as crbug.com/1267606 illustrates how the hyphen can go missing
depending on character coverage API." name="assert">
<style>
@font-face {
font-family: roboto_hyphen;
src: url(resources/roboto_hyphenation_subset.ttf)
}
div {
display: block;
width: 40px;
hyphens: auto;
-webkit-hyphens: auto;
font-family: roboto_hyphen, cursive;
}
</style>
<body>
<div lang="de">
Donaudampfschifffahrt
</div>
<script>
document.fonts.ready.then(
() => { document.documentElement.classList.remove("reftest-wait"); });
</script>
</body>
</html>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text reference: hyphenate-character</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<style>
div {
font: 16px monospace;
}
</style>
<p>Test passes if the words below are broken at hyphenation positions but <b>no visible hyphens appear</b>.
<div lang="en">
im<br>ple<br>men<br>ta<br>tion<br><br>
ini<br>tial<br>iza<br>tion<br><br>
real<br>iza<br>tion<br><br>
hy<br>phen<br>ation
</div>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text reference: hyphenate-character</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<style>
div {
font: 16px monospace;
}
</style>
<p>Test passes if the words below are hyphenated <b>using a bullet (&#x2022;) character</b>.
<div lang="en">
im•<br>ple•<br>men•<br>ta•<br>tion<br><br>
ini•<br>tial•<br>iza•<br>tion<br><br>
real•<br>iza•<br>tion<br><br>
hy•<br>phen•<br>ation
</div>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text reference: hyphenate-character</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<style>
div {
font: 16px monospace;
}
</style>
<p>Test passes if the words below are hyphenated <b>using the string "/-/"</b>.
<div lang="en">
im/-/<br>ple/-/<br>men/-/<br>tation<br><br>
ini/-/<br>tial/-/<br>iza/-/<br>tion<br><br>
re/-/<br>al/-/<br>iza/-/<br>tion<br><br>
hy/-/<br>phen/-/<br>ation
</div>

View file

@ -0,0 +1,31 @@
<!doctype html>
<html lang="en" class="reftest-wait">
<link rel="author" title="Dominik Röttsches" href="mailto:drott@chromium.org">
<meta charset="utf-8" />
<style>
@font-face {
font-family: roboto_hyphen;
src: url(../resources/roboto_hyphenation_subset.ttf)
}
div {
width: 30px;
hyphens: auto;
-webkit-hyphens: auto;
font-family: roboto_hyphen, cursive;
}
</style>
<body>
<div>
Do-<br>
nau-<br>
dampf-<br>
schiff-<br>
fahrt
</div>
<script>
document.fonts.ready.then(
() => { document.documentElement.classList.remove("reftest-wait"); });
</script>
</body>
</html>

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if ja and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if ja and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if ja and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if ja and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if ja and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if ja and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,23 +44,19 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if ja and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,10 +44,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -57,10 +53,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,10 +44,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -57,10 +53,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if ja and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -46,10 +46,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -59,10 +55,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if ja and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -46,10 +46,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -59,10 +55,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -46,10 +46,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="ja">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -59,10 +55,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if ja and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if de and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if de and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if de and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,10 +44,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -57,10 +53,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if de and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,10 +44,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -57,10 +53,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,10 +44,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -57,10 +53,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if de and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -46,10 +46,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -59,10 +55,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if de and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -46,10 +46,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -59,10 +55,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if de and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -46,10 +46,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="de">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -59,10 +55,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if de and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
}, lines[i]+' may NOT appear at line start if lang unknonw loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if lang unknown and loose');
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if lang unknown and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if lang unknown and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if lang unknown and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
}, lines[i]+' may NOT appear at line start if lang unkonwn and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if lang unknown and normal');
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if lang unknown and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,10 +44,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -57,10 +53,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if lang unknown and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,10 +44,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -57,10 +53,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if lang unknown and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,10 +44,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -57,10 +53,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if lang unknown and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -46,10 +46,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -59,10 +55,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -46,10 +46,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -59,10 +55,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -46,10 +46,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -59,10 +55,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if zh and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if zh and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -89,10 +89,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -102,10 +98,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if zh and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if zh and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if zh and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -48,10 +48,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -61,10 +57,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if zh and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if zh and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if zh and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -40,10 +40,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -53,10 +49,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if zh and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if zh and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if zh and normal');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -43,10 +43,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -56,10 +52,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may NOT appear at line start if zh and strict');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

View file

@ -44,10 +44,6 @@ for (var i=0;i<lines.length;i++) {
'<div class="ref" id="ref'+i+'" lang="zh">文文文文文文<br/>&#x'+hex+';<span id="refSpan'+i+'"></span></div>' +
'</div>'
}
function spansNearEnough(counter) {
return Math.abs( document.getElementById('testSpan'+counter).getBoundingClientRect().left
- document.getElementById('refSpan'+counter).getBoundingClientRect().left ) < 1;
}
document.querySelector('body').innerHTML = out
setup({explicit_done: true});
@ -57,10 +53,12 @@ document.fonts.ready.then(validate);
function validate() {
for (i=0;i<lines.length;i++) {
test(function() {
assert_true(spansNearEnough(i));
assert_approx_equals(
document.getElementById('testSpan'+i).getBoundingClientRect().left,
document.getElementById('refSpan'+i).getBoundingClientRect().left, 1);
// Hide successful tests.
document.getElementById('test'+i).parentNode.style.display = 'none';
}, lines[i]+' may appear at line start if zh and loose');
// Hide successful tests.
if (spansNearEnough(i)) document.getElementById('test'+i).parentNode.style.display = 'none'
}
done();
}

Some files were not shown because too many files have changed in this diff Show more