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

Unified Diff: LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js

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/script-tests/postmessage-clone.js
diff --git a/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js b/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js
index 9e940799b7d4ce86695a886bc3bc41c7c7b07bf5..6642ea41f4c37f512568694fdae1a2c2ae3118f0 100644
--- a/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js
+++ b/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js
@@ -21,6 +21,12 @@ tryPostMessage('[1,2,3]');
tryPostMessage('[,,1]');
tryPostMessage('(function(){})', true, null, DOMException.DATA_CLONE_ERR);
tryPostMessage('var x = 0; try { eval("badref"); } catch(e) { x = e; } x', true, null, DOMException.DATA_CLONE_ERR);
+var arrayBuffer = new ArrayBuffer(1);
+tryPostMessage('"data"', false, null, 0, [arrayBuffer]);
+tryPostMessage('arrayBuffer', true, null, DOMException.DATA_CLONE_ERR);
+var uint8Array = new Uint8Array([10]);
+tryPostMessage('"data"', false, null, 0, [uint8Array.buffer]);
+tryPostMessage('uint8Array', true, null, DOMException.DATA_CLONE_ERR);
tryPostMessage('new Date(1234567890000)');
tryPostMessage('new ConstructorWithPrototype("foo")', false, '({field:"foo"})');
tryPostMessage('new Boolean(true)');

Powered by Google App Engine
This is Rietveld 408576698