The design language that makes your AI harness better at design.
JavaScript
Serve the DESIGN.md purple fixture over HTTP so the test runs on Windows
Paul Bakaus7880578a706a
diff --git a/crates/browser/tests/brand_and_vendors.rs b/crates/browser/tests/brand_and_vendors.rsindex b9f0d9a3f..acec786ed 100644--- a/crates/browser/tests/brand_and_vendors.rs+++ b/crates/browser/tests/brand_and_vendors.rs@@ -18,7 +18,7 @@//! whose headings are set two weight steps heavier than the body reports as//! advisory; one step heavier stays a warning//! (r4-p23-flat-type-hierarchy-commerce).-//! - A `file://` page in a project whose DESIGN.md declares a purple reports+//! - A page scanned with a DESIGN.md that declares a purple reports//! none of ai-color-palette's purple forms.use std::collections::HashMap;@@ -197,8 +197,10 @@ fn a_flat_ramp_separated_by_weight_is_advisory() {#[test]fn a_design_md_purple_switches_the_purple_forms_off() {let Some(engine) = engine() else { return };- let page = fixtures_dir().join("ai-color-palette-brand-hue-headings-only.html");- let url = format!("file://{}", page.canonicalize().expect("fixture").display());+ // Served over HTTP like the other cases: a `file://` URL built from a+ // canonicalized Windows path (`\\?\C:\...`) is not a URL Chrome navigates to.+ let port = serve();+ let url = format!("http://127.0.0.1:{port}/ai-color-palette-brand-hue-headings-only.html");let scan_with = |primary: &str| {let fm: serde_json::Map<String, serde_json::Value> = serde_json::from_value(serde_json::json!({"colors": { "primary": primary }