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

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

Issue 1022283002: Throw TypeError if value conversion to transferable fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add more tests for TypeError throwing Created 5 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: LayoutTests/fast/dom/Window/window-postmessage-args-expected.txt
diff --git a/LayoutTests/fast/dom/Window/window-postmessage-args-expected.txt b/LayoutTests/fast/dom/Window/window-postmessage-args-expected.txt
index c537859ab0a09e21db74b3ed39983c0f1f2a7e09..1b0278826fdb97aa2646e19c174af1ae4bfa36e0 100644
--- a/LayoutTests/fast/dom/Window/window-postmessage-args-expected.txt
+++ b/LayoutTests/fast/dom/Window/window-postmessage-args-expected.txt
@@ -23,7 +23,10 @@ PASS: view neutered
PASS: Posting message ('[object ArrayBuffer]', ): threw exception DataCloneError: Failed to execute 'postMessage' on 'Window': An ArrayBuffer is neutered and could not be cloned.
PASS: Posting message ('data', [object ArrayBuffer]): threw exception DataCloneError: Failed to execute 'postMessage' on 'Window': ArrayBuffer at index 0 is already neutered.
PASS: Posting message ('[object Int8Array]', ): threw exception DataCloneError: Failed to execute 'postMessage' on 'Window': An ArrayBuffer is neutered and could not be cloned.
-PASS: Posting message ('data', [object Int8Array]): threw exception DataCloneError: Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
+PASS: Posting message ('data', [object Int8Array]): threw exception TypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
+PASS: Posting message ('data', [object Object]): threw exception TypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 is an untransferable 'undefined' value.
+PASS: Posting message ('data', 1,,2): threw exception TypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
+PASS: Posting message ('data', ,function () { [native code] }): threw exception TypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 is an untransferable 'null' value.
PASS: Posting message ('done', undefined) did not throw an exception
Received message '4' with 0 ports.
Received message '4a' with 0 ports.
« no previous file with comments | « LayoutTests/fast/dom/Window/window-postmessage-args.html ('k') | LayoutTests/fast/events/message-port-clone.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698