fix(style): appease cargo fmt

master
Ashley Williams 7 years ago
parent d3f8264ef7
commit 66ffe1df96
  1. 12
      tests/all/bindgen.rs
  2. 12
      tests/all/test.rs
  3. 12
      tests/all/webdriver.rs

@ -2,13 +2,11 @@ use tempfile;
use wasm_pack::bindgen; use wasm_pack::bindgen;
#[test] #[test]
#[cfg( #[cfg(any(
any(
all(target_os = "linux", target_arch = "x86_64"), all(target_os = "linux", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "x86_64"), all(target_os = "macos", target_arch = "x86_64"),
all(windows, target_arch = "x86_64"), all(windows, target_arch = "x86_64"),
) ))]
)]
fn can_download_prebuilt_wasm_bindgen() { fn can_download_prebuilt_wasm_bindgen() {
use std::env; use std::env;
let dir = tempfile::TempDir::new().unwrap(); let dir = tempfile::TempDir::new().unwrap();
@ -30,13 +28,11 @@ fn can_download_prebuilt_wasm_bindgen() {
} }
#[test] #[test]
#[cfg( #[cfg(any(
any(
all(target_os = "linux", target_arch = "x86_64"), all(target_os = "linux", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "x86_64"), all(target_os = "macos", target_arch = "x86_64"),
all(windows, target_arch = "x86_64"), all(windows, target_arch = "x86_64"),
) ))]
)]
fn downloading_prebuilt_wasm_bindgen_handles_http_errors() { fn downloading_prebuilt_wasm_bindgen_handles_http_errors() {
let dir = tempfile::TempDir::new().unwrap(); let dir = tempfile::TempDir::new().unwrap();
let bad_version = "0.2.21-some-trailing-version-stuff-that-does-not-exist"; let bad_version = "0.2.21-some-trailing-version-stuff-that-does-not-exist";

@ -35,14 +35,12 @@ fn it_can_run_tests_with_different_wbg_test_and_wbg_versions() {
} }
#[test] #[test]
#[cfg( #[cfg(any(
any(
all(target_os = "linux", target_arch = "x86_64"), all(target_os = "linux", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "x86_64"), all(target_os = "macos", target_arch = "x86_64"),
all(target_os = "windows", target_arch = "x86"), all(target_os = "windows", target_arch = "x86"),
all(target_os = "windows", target_arch = "x86_64") all(target_os = "windows", target_arch = "x86_64")
) ))]
)]
fn it_can_run_browser_tests() { fn it_can_run_browser_tests() {
let fixture = fixture::wbg_test_browser(); let fixture = fixture::wbg_test_browser();
fixture.install_local_wasm_bindgen(); fixture.install_local_wasm_bindgen();
@ -105,15 +103,13 @@ fn it_can_run_failing_tests() {
} }
#[test] #[test]
#[cfg( #[cfg(any(
any(
all(target_os = "linux", target_arch = "x86"), all(target_os = "linux", target_arch = "x86"),
all(target_os = "linux", target_arch = "x86_64"), all(target_os = "linux", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "x86_64"), all(target_os = "macos", target_arch = "x86_64"),
all(target_os = "windows", target_arch = "x86"), all(target_os = "windows", target_arch = "x86"),
all(target_os = "windows", target_arch = "x86_64") all(target_os = "windows", target_arch = "x86_64")
) ))]
)]
fn it_can_find_a_webdriver_on_path() { fn it_can_find_a_webdriver_on_path() {
let fixture = fixture::wbg_test_browser(); let fixture = fixture::wbg_test_browser();
fixture.install_local_wasm_bindgen(); fixture.install_local_wasm_bindgen();

@ -2,28 +2,24 @@ use utils::fixture;
use wasm_pack::test::webdriver; use wasm_pack::test::webdriver;
#[test] #[test]
#[cfg( #[cfg(any(
any(
all(target_os = "linux", target_arch = "x86_64"), all(target_os = "linux", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "x86_64"), all(target_os = "macos", target_arch = "x86_64"),
all(target_os = "windows", target_arch = "x86") all(target_os = "windows", target_arch = "x86")
) ))]
)]
fn can_install_chromedriver() { fn can_install_chromedriver() {
let fixture = fixture::js_hello_world(); let fixture = fixture::js_hello_world();
assert!(webdriver::install_chromedriver(&fixture.path).is_ok()); assert!(webdriver::install_chromedriver(&fixture.path).is_ok());
} }
#[test] #[test]
#[cfg( #[cfg(any(
any(
all(target_os = "linux", target_arch = "x86"), all(target_os = "linux", target_arch = "x86"),
all(target_os = "linux", target_arch = "x86_64"), all(target_os = "linux", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "x86_64"), all(target_os = "macos", target_arch = "x86_64"),
all(target_os = "windows", target_arch = "x86"), all(target_os = "windows", target_arch = "x86"),
all(target_os = "windows", target_arch = "x86_64") all(target_os = "windows", target_arch = "x86_64")
) ))]
)]
fn can_install_geckodriver() { fn can_install_geckodriver() {
let fixture = fixture::js_hello_world(); let fixture = fixture::js_hello_world();
assert!(webdriver::install_geckodriver(&fixture.path).is_ok()); assert!(webdriver::install_geckodriver(&fixture.path).is_ok());

Loading…
Cancel
Save