mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Fix test bustage.
This commit is contained in:
parent
496964123f
commit
5594e12236
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ fn test_iter_indivisible_pieces() {
|
||||||
fn test_pieces(text: ~str, res: ~[~str]) {
|
fn test_pieces(text: ~str, res: ~[~str]) {
|
||||||
let flib = FontCache();
|
let flib = FontCache();
|
||||||
let font = flib.get_test_font();
|
let font = flib.get_test_font();
|
||||||
let run = TextRun(font, copy text);
|
let run = TextRun::new(font, copy text);
|
||||||
let mut slices : ~[~str] = ~[];
|
let mut slices : ~[~str] = ~[];
|
||||||
for run.iter_indivisible_pieces_for_range(Range(0, text.len())) |subrange| {
|
for run.iter_indivisible_pieces_for_range(Range(0, text.len())) |subrange| {
|
||||||
slices.push(str::slice(text, subrange.begin(), subrange.length()));
|
slices.push(str::slice(text, subrange.begin(), subrange.length()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue