mirror of
https://github.com/servo/servo.git
synced 2025-09-01 10:38:25 +01:00
Move Stylo to its own repo (#31350)
* Remove packages that were moved to external repo
* Add workspace dependencies pointing to 2023-06-14 branch
* Fix servo-tidy.toml errors
* Update commit to include #31346
* Update commit to include servo/stylo#2
* Move css-properties.json lookup to target/doc/stylo
* Remove dependency on vendored mako in favour of pypi dependency
This also removes etc/ci/generate_workflow.py, which has been unused
since at least 9e71bd6a70
.
* Add temporary code to debug Windows test failures
* Fix failures on Windows due to custom target dir
* Update commit to include servo/stylo#3
* Fix license in tests/unit/style/build.rs
* Document how to build with local Stylo in Cargo.toml
This commit is contained in:
parent
b07505417e
commit
faf754dfa6
400 changed files with 112 additions and 123600 deletions
|
@ -10,14 +10,17 @@ use serde_json::{self, Value};
|
|||
|
||||
#[test]
|
||||
fn properties_list_json() {
|
||||
let top = Path::new(&env::var("CARGO_MANIFEST_DIR").unwrap())
|
||||
// Four dotdots: /path/to/target(4)/debug(3)/build(2)/style_tests-*(1)/out
|
||||
// Do not ascend above the target dir, because it may not be called target
|
||||
// or even have a parent (see CARGO_TARGET_DIR).
|
||||
let target_dir = Path::new(env!("OUT_DIR"))
|
||||
.join("..")
|
||||
.join("..")
|
||||
.join("..")
|
||||
.join("..");
|
||||
let json = top
|
||||
.join("target")
|
||||
let json = target_dir
|
||||
.join("doc")
|
||||
.join("servo")
|
||||
.join("stylo")
|
||||
.join("css-properties.json");
|
||||
|
||||
let properties: Value = serde_json::from_reader(File::open(json).unwrap()).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue