embedder_traits::resources

Function resources_for_tests

Source
fn resources_for_tests() -> Box<dyn ResourceReaderMethods + Sync + Send>
Expand description

Bake all of our resources into this crate for tests, unless we are cfg!(servo_production).

Local non-production embedder builds (e.g. servoshell) can still override these with set. On OpenHarmony we never want to include files, since we ship all the files in the application bundle anyway.