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

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

Issue 30673002: More informative error messages for non-Transferables. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More informative error messages for non-Transferables. Created 7 years, 2 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 5d99d1a7a01b6ba55df47480d022cf8408d5bc58..cb3d8467b0aa94071e27dca8e72d6ef0c1d27e8b 100644
--- a/LayoutTests/fast/dom/Window/window-postmessage-args-expected.txt
+++ b/LayoutTests/fast/dom/Window/window-postmessage-args-expected.txt
@@ -1,8 +1,9 @@
Test that the second argument of window.postMessage is ignored or triggers an error if it is not a message port. You should see PASS message '1' through '7', followed by 'done', with messages 4-7 received below.
-PASS: Posting message ('1', 1): threw exception TypeError: Type error
-PASS: Posting message ('2', c): threw exception TypeError: Type error
-PASS: Posting message ('3', [object Object]): threw exception TypeError: Type error
+PASS: Posting message ('1', 1): threw exception TypeError: Failed to execute 'postMessage' on 'Window': Third argument is neither an array, nor does it have indexed properties.
+PASS: Posting message ('2', c): threw exception TypeError: Failed to execute 'postMessage' on 'Window': Second argument is neither an array, nor does it have indexed properties.
+PASS: Posting message ('3', [object Object]): threw exception TypeError: Failed to execute 'postMessage' on 'Window': Third argument is neither an array, nor does it have indexed properties.
+PASS: Posting message ('3a', *): threw exception TypeError: Failed to execute 'postMessage' on 'Window': Second argument is neither an array, nor does it have indexed properties.
PASS: Posting message ('4', [object Window]) did not throw an exception
PASS: Posting message ('4a', *) did not throw an exception
PASS: Posting message ('5', null) did not throw an exception
« no previous file with comments | « LayoutTests/fast/dom/Window/window-postmessage-args.html ('k') | LayoutTests/fast/events/message-port-multi-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698