Skip to content

Commit

Permalink
Merge pull request #119 from ErichDonGubler/js-tests
Browse files Browse the repository at this point in the history
Support `*.worker.js` metadata and reports
  • Loading branch information
ErichDonGubler authored Jul 24, 2024
2 parents 0587c91 + 4c7f8f0 commit 746488e
Show file tree
Hide file tree
Showing 2 changed files with 334 additions and 58 deletions.
3 changes: 2 additions & 1 deletion moz-webgpu-cts/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,12 @@ fn run(cli: Cli) -> ExitCode {

fn cts_path(test_entry_path: &TestEntryPath<'_>) -> Option<String> {
test_entry_path
.test_entry
.variant
.as_ref()
.filter(|v| v.starts_with("?q=webgpu:"))
.map(|v| v.strip_prefix("?q=").unwrap().to_owned())
.filter(|_q| test_entry_path.path.ends_with("cts.https.html"))
.filter(|_q| test_entry_path.spec_path.path.ends_with("cts.https.html"))
}

let mut file_props_by_file = IndexMap::<Utf8PathBuf, FileProps>::default();
Expand Down
Loading

0 comments on commit 746488e

Please sign in to comment.