2 <div style=
"font-size: 72px;">
3 <span id=
"reference">e
̀</span><span id=
"test">ḗe
̀</span>
5 <div id=
"result">Test did not run.
</div>
8 testRunner
.dumpAsText();
10 var reference
= document
.getElementById("reference").firstChild
;
11 var referenceRange
= document
.createRange();
12 referenceRange
.setStart(reference
, 0);
13 referenceRange
.setEnd(reference
, 2);
14 var referenceWidth
= referenceRange
.getBoundingClientRect().width
;
16 var test
= document
.getElementById("test").firstChild
;
17 var testRange
= document
.createRange();
18 testRange
.setStart(test
, 1);
19 testRange
.setEnd(test
, 3);
20 var testWidth
= testRange
.getBoundingClientRect().width
;
22 document
.getElementById("result").innerText
= Math
.abs(testWidth
- referenceWidth
) <= 1 ? "PASS" : "FAIL";