Update test harness for browser testing

This commit updates the test harness for in-browser testing. It now no longer
unconditionally uses `fs.writeSync`, for example. Instead a `Formatter` trait is
introduced for both Node/browser environments and at runtime we detect which is
the appropriate one to use.
This commit is contained in:
Alex Crichton
2018-07-24 11:32:18 -07:00
parent 0770f830e7
commit 8fc40e4c0f
5 changed files with 271 additions and 30 deletions

View File

@ -20,6 +20,6 @@ macro_rules! console_log {
)
}
#[path = "rt.rs"]
#[path = "rt/mod.rs"]
#[doc(hidden)]
pub mod __rt;