Skip to content

Commit

Permalink
fixup! feat: Add --location and globalThis.location
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn committed Jan 6, 2021
1 parent 79b0106 commit a8308a0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cli/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5202,18 +5202,14 @@ fn web_platform_tests() {
.tempfile()
.unwrap();

let bundle = concat_bundle(
files,
file.path(),
format!("window.location = {{search: \"{}\"}};\n", variant),
);
let bundle = concat_bundle(files, file.path(), "".to_string());
file.write_all(bundle.as_bytes()).unwrap();

let child = util::deno_cmd()
.current_dir(test_file_path.parent().unwrap())
.arg("run")
.arg("--location")
.arg("http://web-platform-tests/")
.arg(&format!("http://web-platform-tests/?{}", variant))
.arg("-A")
.arg(file.path())
.arg(deno_core::serde_json::to_string(&expect_fail).unwrap())
Expand Down

0 comments on commit a8308a0

Please sign in to comment.