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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/wasm/wasm_local_iframe_test.html

Issue 2822193003: [wasm] Enable local iframe test. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/wasm/resources/frame.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/wasm/wasm_local_iframe_test.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_local_iframe_test.html b/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_local_iframe_test.html
index 66f78855afca8e3461a8021ac5c5d311838a30e7..fa1ab0cb11ea118ce51e29790f06eba96e0dd9f5 100644
--- a/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_local_iframe_test.html
+++ b/third_party/WebKit/LayoutTests/http/tests/wasm/wasm_local_iframe_test.html
@@ -10,7 +10,7 @@
var ans = await new Promise((resolve, reject) => {
var iframe = document.getElementById("iframe").contentWindow;
iframe.postMessage(mod, '*');
- iframe.onmessage = event => resolve(event.data);
+ window.addEventListener("message", (reply) => resolve(reply.data), false);
});
assert_equals(ans, 43);
}, "send wasm module to iframe");
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/wasm/resources/frame.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698