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

Side by Side 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 unified diff | Download patch
OLDNEW
1 Tests that we clone object hierarchies 1 Tests that we clone object hierarchies
2 2
3 PASS: 'postMessage((function(){}))' threw DataCloneError: Failed to execute 'pos tMessage' on 'Window': An object could not be cloned. 3 PASS: 'postMessage((function(){}))' threw DataCloneError: Failed to execute 'pos tMessage' on 'Window': An object could not be cloned.
4 PASS: 'postMessage(var x = 0; try { eval("badref"); } catch(e) { x = e; } x)' th rew DataCloneError: Failed to execute 'postMessage' on 'Window': An object could not be cloned. 4 PASS: 'postMessage(var x = 0; try { eval("badref"); } catch(e) { x = e; } x)' th rew DataCloneError: Failed to execute 'postMessage' on 'Window': An object could not be cloned.
5 PASS: 'postMessage(arrayBuffer)' threw DataCloneError: Failed to execute 'postMe ssage' on 'Window': An ArrayBuffer is neutered and could not be cloned. 5 PASS: 'postMessage(arrayBuffer)' threw DataCloneError: Failed to execute 'postMe ssage' on 'Window': An ArrayBuffer is neutered and could not be cloned.
6 PASS: 'postMessage("data")' threw DataCloneError: Failed to execute 'postMessage ' on 'Window': ArrayBuffer at index 1 is a duplicate of an earlier ArrayBuffer. 6 PASS: 'postMessage("data")' threw DataCloneError: Failed to execute 'postMessage ' on 'Window': ArrayBuffer at index 1 is a duplicate of an earlier ArrayBuffer.
7 PASS: 'postMessage(uint8Array)' threw DataCloneError: Failed to execute 'postMes sage' on 'Window': An ArrayBuffer is neutered and could not be cloned. 7 PASS: 'postMessage(uint8Array)' threw DataCloneError: Failed to execute 'postMes sage' on 'Window': An ArrayBuffer is neutered and could not be cloned.
8 PASS: 'postMessage(window)' threw DataCloneError: Failed to execute 'postMessage ' on 'Window': An object could not be cloned. 8 PASS: 'postMessage(window)' threw DataCloneError: Failed to execute 'postMessage ' on 'Window': An object could not be cloned.
9 PASS: 'postMessage(({get a() { throw "x" }}))' threw x 9 PASS: 'postMessage(({get a() { throw "x" }}))' threw x
10 PASS: 'postMessage(blob.close(); blob)' threw DataCloneError: Failed to execute 'postMessage' on 'Window': A Blob object has been closed, and could therefore no t be cloned.
11 PASS: 'postMessage(constructedFile.close(); constructedFile)' threw DataCloneErr or: Failed to execute 'postMessage' on 'Window': A File object has been closed, and could therefore not be cloned.
10 PASS: 'postMessage((function() {return {get a() { throw "accessor-exn"; }};})()) ' threw accessor-exn 12 PASS: 'postMessage((function() {return {get a() { throw "accessor-exn"; }};})()) ' threw accessor-exn
11 PASS: 'postMessage((function() {var obja = {get p() { throw "accessor-exn"; }}; return {get a() { return obja; }};})())' threw accessor-exn 13 PASS: 'postMessage((function() {var obja = {get p() { throw "accessor-exn"; }}; return {get a() { return obja; }};})())' threw accessor-exn
12 PASS: lastIndex initially correct: was 3 14 PASS: lastIndex initially correct: was 3
13 PASS: sanity on file reference equality 15 PASS: sanity on file reference equality
14 PASS: eventData is null of type object 16 PASS: eventData is null of type object
15 PASS: eventData is undefined of type undefined 17 PASS: eventData is undefined of type undefined
16 PASS: eventData is 1 of type number 18 PASS: eventData is 1 of type number
17 PASS: eventData is true of type boolean 19 PASS: eventData is true of type boolean
18 PASS: eventData is 1 of type string 20 PASS: eventData is 1 of type string
19 PASS: eventData is [object Object] of type object 21 PASS: eventData is [object Object] of type object
(...skipping 20 matching lines...) Expand all
40 PASS: eventData is 42 of type object 42 PASS: eventData is 42 of type object
41 PASS: eventData is === to eventData.self 43 PASS: eventData is === to eventData.self
42 PASS: eventData is === to eventData[0] 44 PASS: eventData is === to eventData[0]
43 PASS: eventData is === to eventData.self 45 PASS: eventData is === to eventData.self
44 PASS: eventData.graph1 is === to eventData.graph2 46 PASS: eventData.graph1 is === to eventData.graph2
45 PASS: eventData[0] is === to eventData[1] 47 PASS: eventData[0] is === to eventData[1]
46 PASS: eventData is [object ImageData] of type object 48 PASS: eventData is [object ImageData] of type object
47 PASS: eventData is [object Uint8ClampedArray] of type object 49 PASS: eventData is [object Uint8ClampedArray] of type object
48 PASS: eventData is [object ImageData] of type object 50 PASS: eventData is [object ImageData] of type object
49 PASS: eventData is [object Uint8ClampedArray] of type object 51 PASS: eventData is [object Uint8ClampedArray] of type object
52 PASS: Cloned Blob size equal to the original size.
53 PASS: Cloned File size equal to the original size.
50 PASS: eventData is 42 of type number 54 PASS: eventData is 42 of type number
51 PASS: eventData is 42 of type number 55 PASS: eventData is 42 of type number
52 PASS: evalThunk OK 56 PASS: evalThunk OK
53 PASS: eventData is [object Object] of type object 57 PASS: eventData is [object Object] of type object
54 PASS: length correct 58 PASS: length correct
55 PASS: evaluation order OK 59 PASS: evaluation order OK
56 PASS: evaluation order OK/accessor reached 60 PASS: evaluation order OK/accessor reached
57 PASS: evaluation order OK 61 PASS: evaluation order OK
58 PASS: length correct 62 PASS: length correct
59 PASS: index 0 OK 63 PASS: index 0 OK
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 PASS: FileList respects self-reference equality 139 PASS: FileList respects self-reference equality
136 PASS: FileList length sent correctly 140 PASS: FileList length sent correctly
137 PASS: FileList should not respect reference equality (0) 141 PASS: FileList should not respect reference equality (0)
138 PASS: FileList should not respect reference equality (1) 142 PASS: FileList should not respect reference equality (1)
139 PASS: FileList preserves order and data (name0) 143 PASS: FileList preserves order and data (name0)
140 PASS: FileList preserves order and data (name1) 144 PASS: FileList preserves order and data (name1)
141 PASS: FileList preserves order and data (date0) 145 PASS: FileList preserves order and data (date0)
142 PASS: FileList preserves order and data (date1) 146 PASS: FileList preserves order and data (date1)
143 PASS: eventData is done of type string 147 PASS: eventData is done of type string
144 148
OLDNEW
« 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