diff --git a/test_suite/tests/test_de.rs b/test_suite/tests/test_de.rs index 0df7fd69..60bd0b41 100644 --- a/test_suite/tests/test_de.rs +++ b/test_suite/tests/test_de.rs @@ -272,7 +272,7 @@ declare_tests! { 0f32 => &[Token::F32(0.)], 0f64 => &[Token::F64(0.)], } - #[cfg(not(target_arch = "wasm32"))] + #[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] test_small_int_to_128 { 1i128 => &[Token::I8(1)], 1i128 => &[Token::I16(1)], diff --git a/test_suite/tests/test_ser.rs b/test_suite/tests/test_ser.rs index 231b6ee7..81129540 100644 --- a/test_suite/tests/test_ser.rs +++ b/test_suite/tests/test_ser.rs @@ -618,7 +618,7 @@ fn test_enum_skipped() { ); } -#[cfg(not(target_arch = "wasm32"))] +#[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] #[test] fn test_integer128() { assert_ser_tokens_error(&1i128, &[], "i128 is not supported"); diff --git a/test_suite/tests/test_value.rs b/test_suite/tests/test_value.rs index d351ed54..180e72f2 100644 --- a/test_suite/tests/test_value.rs +++ b/test_suite/tests/test_value.rs @@ -26,7 +26,7 @@ fn test_u32_to_enum() { assert_eq!(E::B, e); } -#[cfg(not(target_arch = "wasm32"))] +#[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] #[test] fn test_integer128() { let de_u128 = IntoDeserializer::::into_deserializer(1u128); diff --git a/travis.sh b/travis.sh index 11c9556f..9002e3e5 100755 --- a/travis.sh +++ b/travis.sh @@ -53,6 +53,7 @@ elif [ -n "${EMSCRIPTEN}" ]; then chmod +x ~/.cargo/bin/cargo-web cd "$DIR/test_suite" + cargo web test --target=asmjs-unknown-emscripten --nodejs cargo web test --target=wasm32-unknown-emscripten --nodejs else CHANNEL=nightly