13 // This is the constant in nsTextFrame.cpp of the number of lines
14 // which a text run can be built up to.
15 const NUM_LINES_TO_BUILD_TEXT_RUNS
= 200;
16 // Since the font-size is small, we need lots of blocks so that it can
17 // be seen clearer whether difference is fuzzy or real failure.
18 let x
= '\u2588'.repeat(100) + '<br>';
19 for (let i
= 0; i
< NUM_LINES_TO_BUILD_TEXT_RUNS
/ 2 - 1; i
++) {
22 // We want this piece to be in whatever place inside the first
23 // NUM_LINES_TO_BUILD_TEXT_RUNS lines.
24 document
.write('あ\nあ<br>');
25 // And we want another NUM_LINES_TO_BUILD_TEXT_RUNS lines to check.
26 for (let i
= 0; i
< NUM_LINES_TO_BUILD_TEXT_RUNS
* 1.5; i
++) {