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

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

Issue 189623014: Throw DataCloneError on cloning closed Blobs/Files. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Error message tweak Created 6 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-clone-expected.txt
diff --git a/LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt b/LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt
index 6072353cb033001962ff7c699dd201928a74b9db..86f96305d8d104807cb1a4ce269b48215f37f399 100644
--- a/LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt
+++ b/LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt
@@ -7,6 +7,8 @@ PASS: 'postMessage("data")' threw DataCloneError: Failed to execute 'postMessage
PASS: 'postMessage(uint8Array)' threw DataCloneError: Failed to execute 'postMessage' on 'Window': An ArrayBuffer is neutered and could not be cloned.
PASS: 'postMessage(window)' threw DataCloneError: Failed to execute 'postMessage' on 'Window': An object could not be cloned.
PASS: 'postMessage(({get a() { throw "x" }}))' threw x
+PASS: 'postMessage(blob.close(); blob)' threw DataCloneError: Failed to execute 'postMessage' on 'Window': A Blob object has been closed, and could therefore not be cloned.
+PASS: 'postMessage(constructedFile.close(); constructedFile)' threw DataCloneError: Failed to execute 'postMessage' on 'Window': A File object has been closed, and could therefore not be cloned.
PASS: 'postMessage((function() {return {get a() { throw "accessor-exn"; }};})())' threw accessor-exn
PASS: 'postMessage((function() {var obja = {get p() { throw "accessor-exn"; }}; return {get a() { return obja; }};})())' threw accessor-exn
PASS: lastIndex initially correct: was 3
@@ -47,6 +49,8 @@ PASS: eventData is [object ImageData] of type object
PASS: eventData is [object Uint8ClampedArray] of type object
PASS: eventData is [object ImageData] of type object
PASS: eventData is [object Uint8ClampedArray] of type object
+PASS: Cloned Blob size equal to the original size.
+PASS: Cloned File size equal to the original size.
PASS: eventData is 42 of type number
PASS: eventData is 42 of type number
PASS: evalThunk OK
« no previous file with comments | « LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js ('k') | Source/bindings/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698