Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ jobs:
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Run Wasm tests
run: wasm-pack test --chrome --chromedriver ${{ steps.setup-chrome.outputs.chromedriver-path }} --headless --no-default-features --features rust_native_crypto
run: wasm-pack test --chrome --chromedriver ${{ steps.setup-chrome.outputs.chromedriver-path }} --headless --no-default-features --features rust_native_crypto,fetch_remote_manifests
working-directory: ./sdk
env:
WASM_BINDGEN_TEST_TIMEOUT: 60
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ test-local:
cargo test --features="file_io, fetch_remote_manifests, add_thumbnails, v1_api" --all-targets

test-wasm:
cd sdk && wasm-pack test --node -- --no-default-features --features="rust_native_crypto"
cd sdk && wasm-pack test --node -- --no-default-features --features="rust_native_crypto, fetch_remote_manifests"

test-wasm-web:
cd sdk && wasm-pack test --chrome --headless -- --no-default-features --features="rust_native_crypto"
cd sdk && wasm-pack test --chrome --headless -- --no-default-features --features="rust_native_crypto, fetch_remote_manifests"

# WASI testing requires upstream llvm clang (not XCode), wasmtime, and the target wasm32-wasip2 on the nightly toolchain
test-wasi:
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct StructuredAction {
///
/// # Example: Building and signing a manifest
///
/// ```
/// ```ignore-wasm32
/// use c2pa::Result;
/// use std::path::PathBuf;
///
Expand Down
1 change: 1 addition & 0 deletions sdk/src/identity/tests/claim_aggregation/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ async fn unsupported_did_method() {
all(target_arch = "wasm32", not(target_os = "wasi")),
wasm_bindgen_test
)]
#[cfg_attr(target_os = "wasi", wstd::test)]
async fn unresolvable_did() {
// If the DID can not be resolved, the validator MUST issue the failure code
// `cawg.ica.did_unavailable` but MAY continue validation.
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
//!
//! ## Example: Adding a Manifest to a file
//!
//! ```
//! ```ignore-wasm32
//! # use c2pa::Result;
//! use std::path::PathBuf;
//!
Expand Down
Loading