diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/net/file_loader.rs | 3 | ||||
-rw-r--r-- | src/test/content/test_document_body.html | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/components/net/file_loader.rs b/src/components/net/file_loader.rs index 917d1ebc12c..0b8d5240bc2 100644 --- a/src/components/net/file_loader.rs +++ b/src/components/net/file_loader.rs @@ -8,7 +8,8 @@ use std::io; use std::io::File; 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>) -> Result<(), ()> { diff --git a/src/test/content/test_document_body.html b/src/test/content/test_document_body.html index 09bb8daf9aa..e10447bc588 100644 --- a/src/test/content/test_document_body.html +++ b/src/test/content/test_document_body.html @@ -35,7 +35,9 @@ 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"); } |