Make tests pass once more.

This commit is contained in:
Josh Matthews 2014-03-14 16:21:05 -04:00 committed by Lars Bergstrom
parent 720458c233
commit cbc8006c60
2 changed files with 5 additions and 2 deletions

View file

@ -8,7 +8,8 @@ use std::io;
use std::io::File; use std::io::File;
use servo_util::task::spawn_named; use servo_util::task::spawn_named;
static READ_SIZE: uint = 1024; //FIXME: https://github.com/mozilla/rust/issues/12892
static READ_SIZE: uint = 1;
fn read_all(reader: &mut io::Stream, progress_chan: &Chan<ProgressMsg>) fn read_all(reader: &mut io::Stream, progress_chan: &Chan<ProgressMsg>)
-> Result<(), ()> { -> Result<(), ()> {

View file

@ -35,7 +35,9 @@
is_not(new_div, null, "test4-0, append an invalid element to a new document"); is_not(new_div, null, "test4-0, append an invalid element to a new document");
new_document.body = new_div; should_throw(function() {
new_document.body = new_div;
});
is(new_document.body, null, "test4-1, append an invalid element to a new document"); is(new_document.body, null, "test4-1, append an invalid element to a new document");
} }