3 <span id=
"a">A
⃕A
︠A
⃕A
⃕A
⃕A
⃕A
⃕⃕A
͋</span>
5 This test passes if it doesn't crash or log a failure message to the console.
9 testRunner
.dumpAsText();
11 var textNode
= document
.getElementById('a').firstChild
;
12 var length
= textNode
.textContent
.length
;
13 for (var start
= 0; start
< length
; ++start
) {
14 for (var end
= 0; end
< length
; ++end
) {
15 var range
= document
.createRange();
16 range
.setStart(textNode
, start
);
17 range
.setEnd(textNode
, end
);
18 var rect
= range
.getBoundingClientRect();
19 if (rect
.width
< 0 || rect
.width
> 200) {
20 console
.log('FAIL: rect.width is ' + rect
.width
);