File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ jobs:
306306 run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
307307
308308 - name : Run Wasm tests
309- run : wasm-pack test --chrome --chromedriver ${{ steps.setup-chrome.outputs.chromedriver-path }} --headless --no-default-features --features rust_native_crypto
309+ run : wasm-pack test --chrome --chromedriver ${{ steps.setup-chrome.outputs.chromedriver-path }} --headless --no-default-features --features rust_native_crypto,fetch_remote_manifests
310310 working-directory : ./sdk
311311 env :
312312 WASM_BINDGEN_TEST_TIMEOUT : 60
Original file line number Diff line number Diff line change @@ -4231,7 +4231,11 @@ impl Store {
42314231 verify : bool ,
42324232 validation_log : & mut StatusTracker ,
42334233 ) -> Result < Self > {
4234- let ( manifest_bytes, remote_url) = Store :: load_jumbf_from_stream ( format, & mut stream) ?;
4234+ let ( manifest_bytes, remote_url) = if _sync {
4235+ Store :: load_jumbf_from_stream ( format, & mut stream) ?
4236+ } else {
4237+ Store :: load_jumbf_from_stream_async ( format, & mut stream) . await ?
4238+ } ;
42354239
42364240 let store = if _sync {
42374241 Self :: from_manifest_data_and_stream (
Original file line number Diff line number Diff line change 1414mod common;
1515use c2pa:: { validation_status, Error , Reader , Result } ;
1616use common:: { assert_err, compare_to_known_good, fixture_stream} ;
17- #[ cfg( not( target_os = "wasi" ) ) ]
17+ #[ cfg( all ( target_arch = "wasm32" , not( target_os = "wasi" ) ) ) ]
1818use wasm_bindgen_test:: wasm_bindgen_test;
1919#[ cfg( all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ) ]
2020wasm_bindgen_test:: wasm_bindgen_test_configure!( run_in_browser) ;
@@ -67,8 +67,12 @@ fn test_reader_xca_jpg() -> Result<()> {
6767 compare_to_known_good ( & reader, "XCA.json" )
6868}
6969
70- #[ cfg( all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ) ]
71- #[ wasm_bindgen_test]
70+ #[ cfg( not( target_os = "wasi" ) ) ]
71+ #[ cfg_attr( not( target_arch = "wasm32" ) , actix:: test) ]
72+ #[ cfg_attr(
73+ all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
74+ wasm_bindgen_test
75+ ) ]
7276async fn test_reader_remote_url_async ( ) -> Result < ( ) > {
7377 let reader = Reader :: from_stream_async (
7478 "image/jpeg" ,
You can’t perform that action at this time.
0 commit comments