Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(753)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/wasm/wasm_serialization_tests.js

Issue 2749503002: [wasm] enable wasm structured cloning in specific cases (Closed)
Patch Set: async Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/wasm/wasm_serialization_tests.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_serialization_tests.js b/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_serialization_tests.js
index 940063187472217b7fd8e69c2f84e8aa32707cec..60aec8009d7067dfa4f9d7c23c3334124b330b17 100644
--- a/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_serialization_tests.js
+++ b/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_serialization_tests.js
@@ -33,7 +33,7 @@ function findStartOfWasmHeader(byteView) {
function TestIncompatibleDowngrade() {
return createWasmModule()
.then((mod) => {
- var buffer = window.internals.serializeObject(mod);
+ var buffer = window.internals.serializeWithInlineWasm(mod);
var byteView = new Uint8Array(buffer);
// The serialized payload starts with some serialization header, followed
// by the wasm wire bytes. Those should start with the characters
@@ -57,7 +57,7 @@ function TestIncompatibleDowngrade() {
assert_true(invalidated,
"the serialized blob should contain some non-null bytes.");
- var deserialized = window.internals.deserializeBuffer(byteView.buffer);
+ var deserialized = window.internals.deserializeBufferContainingWasm(byteView.buffer);
assert_equals(deserialized, null);
});
}

Powered by Google App Engine
This is Rietveld 408576698