mirror of
https://github.com/servo/servo.git
synced 2025-06-18 21:34:30 +00:00
Previously, the `tests` feature flag of the `embedder_traits` crate caused it and every crate recursively depending on it to be built twice. This feature flag was used to provide a specific set of "resources" when running tests. Instead, this commits overrides the `main()` function of the test harness to change resources at runtime before running any test. This is done by adding a dependency that has `name = "test"` in its `[lib]` section of `Cargo.toml`. This overrides the crate found by `extern crate test;` in code generated by `rustc --test`. |
||
---|---|---|
.. | ||
fetch | ||
tests | ||
blob_loader.rs | ||
Cargo.toml | ||
connector.rs | ||
cookie.rs | ||
cookie_storage.rs | ||
data_loader.rs | ||
filemanager_thread.rs | ||
hosts.rs | ||
hsts.rs | ||
http_cache.rs | ||
http_loader.rs | ||
image_cache.rs | ||
lib.rs | ||
mime_classifier.rs | ||
resource_thread.rs | ||
storage_thread.rs | ||
subresource_integrity.rs | ||
websocket_loader.rs |