diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-03-14 16:21:05 -0400 |
---|---|---|
committer | Lars Bergstrom <lars@lars.com> | 2014-03-18 09:31:22 -0500 |
commit | cbc8006c60b7956a689073e10b0cfb5e33d4a5f8 (patch) | |
tree | bfa86fa5f09477e20bd153221edaec63f1aa82a3 /src | |
parent | 720458c2332e78a6e8ea425e3282fbf5c0c0fe3d (diff) | |
download | servo-cbc8006c60b7956a689073e10b0cfb5e33d4a5f8.tar.gz servo-cbc8006c60b7956a689073e10b0cfb5e33d4a5f8.zip |
Make tests pass once more.
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"); } |