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

Unified Diff: LayoutTests/fast/dom/Window/window-postmessage-args.html

Issue 114363002: Structured cloning: improve DataCloneError reporting. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + reset V8TestInterfaceConstructor.cpp result Created 7 years 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: LayoutTests/fast/dom/Window/window-postmessage-args.html
diff --git a/LayoutTests/fast/dom/Window/window-postmessage-args.html b/LayoutTests/fast/dom/Window/window-postmessage-args.html
index 18277f614c97899686e2e025e94c2639633d4d34..bf05fdbd0dcc47a8ec9314181119afa562f4806b 100644
--- a/LayoutTests/fast/dom/Window/window-postmessage-args.html
+++ b/LayoutTests/fast/dom/Window/window-postmessage-args.html
@@ -62,6 +62,8 @@ var channel4 = new MessageChannel;
tryPostMessageFunction(window.postMessage, channel4.port1, '*', [channel4.port1, channel4.port2]);
var channel5 = new MessageChannel;
tryPostMessageFunction(window.postMessage, [channel5.port1, channel5.port2], '*', [channel5.port1, channel5.port2]);
+tryPostMessageFunction(window.postMessage, 'data', '*', [channel5.port1, channel5.port2], true);
+tryPostMessageFunction(window.postMessage, [channel5.port1, channel5.port2], '*', [], true);
var arrayBuffer = new ArrayBuffer(30);
var int8View = new Int8Array(arrayBuffer, 2, 10);
@@ -79,7 +81,11 @@ if (!(int8View.length == 0)) {
else {
console.innerHTML += "PASS: view neutered<br>"
}
+tryPostMessageFunction(window.postMessage, arrayBuffer, '*', [], true);
+tryPostMessageFunction(window.postMessage, 'data', '*', [arrayBuffer], true);
+tryPostMessageFunction(window.postMessage, int8View, '*', [], true);
+tryPostMessageFunction(window.postMessage, 'data', '*', [int8View], true);
tryPostMessageFunction(window.postMessage, 'done', '*');
</script>

Powered by Google App Engine
This is Rietveld 408576698