Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

fix(renderer): align tests with navigation and fetch APIs

ldm0ec7498513946
diff --git a/moli-renderer-v8/src/runtime/tests/extracted/navigation_streaming.rs b/moli-renderer-v8/src/runtime/tests/extracted/navigation_streaming.rs
index fc97a3e41..558e36912 100644
--- a/moli-renderer-v8/src/runtime/tests/extracted/navigation_streaming.rs
+++ b/moli-renderer-v8/src/runtime/tests/extracted/navigation_streaming.rs
@@ -264,6 +264,7 @@ async fn streaming_document_start_script_exception_does_not_abort_commit() {
};
prepared
.update_commit_configuration(RendererPreparedDocumentCommitConfiguration {
+ web_mcp_invocation: None,
document_start_scripts: vec![
document_start_script(concat!(
"globalThis.__startErrors = [];",
diff --git a/moli-renderer-v8/src/script_vm/tests/extracted/realms_and_teardown.rs b/moli-renderer-v8/src/script_vm/tests/extracted/realms_and_teardown.rs
index c8f410e25..c0670fca4 100644
--- a/moli-renderer-v8/src/script_vm/tests/extracted/realms_and_teardown.rs
+++ b/moli-renderer-v8/src/script_vm/tests/extracted/realms_and_teardown.rs
@@ -10,7 +10,10 @@ fn new_vm_with_pending_response_for_teardown_test()
crate::network_host::build_fetch_response_object_from_stream_for_request_mode(
scope,
&document_url,
- moli_fetch::RequestMode::Cors,
+ crate::network_host::FetchResponseRequest {
+ method: "GET",
+ mode: moli_fetch::RequestMode::Cors,
+ },
moli_fetch::ResponseHead {
final_url: document_url.join("data.json").unwrap(),
status: 200,