Skip to content

Commit

Permalink
fix: deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Sep 29, 2024
1 parent fe359f7 commit b46bc89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/common/src/web_artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use web_sys::{Request, RequestInit, RequestMode, Response};

#[wasm_bindgen]
pub async fn get_corpus(corpus: String) -> Result<js_sys::ArrayBuffer, JsValue> {
let mut opts = RequestInit::new();
opts.method("GET");
opts.mode(RequestMode::Cors);
let opts = RequestInit::new();
opts.set_method("GET");
opts.set_mode(RequestMode::Cors);

let url = format!("http://127.0.0.1:20810/corpus/{}", corpus);

Expand Down
4 changes: 2 additions & 2 deletions tests/integration/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,12 @@ mod tests {

check_canvas_render_test_point!(@r###"
name: layout_clip_00_artifact_ir
data_content_phash: "phash-gradient:AAAAADAAIEAAADUAJLcBKPUFKPUFNLUBALUAILUABLUALLUAMLUAKLUACEAAADEACAQBAAsCJOMFKOUFKOEFAAAAAIEAAAAA"
data_content_phash: "phash-gradient:AAAAADAAIEAAADUAJLUBKPUFKPUFNLMBALUAILUABLUALLUAMLUAKLUACEAAADEACAQBAAsCJOMFKOUFKOEFAAAAAIEAAAAA"
text_content_hash: "sha256:76808cf8c41bd86329766e35346c3a987df61dabd5036ce2e8871b6bf014c1a7"
"###);
check_canvas_render_test_point!(@r###"
name: layout_clip_01_artifact_ir
data_content_phash: "phash-gradient:FBIAAAAANFsAFBMAlBMABBAAvDYAJFcAUBsALAEAiBMAmAMAAAAAQBEAAAAAqBgAFFMAFDMAJBEAnBYApBYApF4AAAAAABQA"
data_content_phash: "phash-gradient:FBIAAAAANFsAFBMAlBMABBIAvDYAJFcAEBsALAEAiBMAmAMAAAAAQBEAAAAAqBgAFFMAFDMAJBEAnBYApBYApF4AAAAAABQA"
text_content_hash: "sha256:93cc86f5b4466bef3b400ed07a9fd183972793729ccd319a361869163f77c37c"
"###);
check_canvas_render_test_point!(@r###"
Expand Down

0 comments on commit b46bc89

Please sign in to comment.