Skip to main content

GOLDEN_FILE_PATH

Constant GOLDEN_FILE_PATH 

Source
pub const GOLDEN_FILE_PATH: &str = "myfile.pdf";
Available on crate feature javascript only.
Expand description

The file path the goldens were recorded with, which is the test harness’s own and not any real file’s.

It leaks into the expected bytes twice, as this.URL and as this.path — the second with a leading separator.

A constant a golden run passes in, exactly as GOLDEN_CLOCK_SECS is — an embedder passes the path it actually opened.