html/infrastructure/safe-passing-of-structured-data/
877 / 896 WPT subtests passing
- Failed
- 17
- Timed out
- 2
- Not run
- 0
- Test files
- 29
- Blocking files
- 0
Chrome none reported WPT subtests passing on the same files, none blocking, 29 without a result
Tests
1 directory, 8 test files here| Directory | Subtests passing | Chrome | Test files | Standing |
|---|---|---|---|---|
shared- | 85 / 88 | — | 21 | none blocking |
Each test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
cross-origin-transfer-resizable-arraybuffer.html 1 / 1 passingChrome —0 failedClean
1 passing subtest
- postMessaging resizable ArrayBuffer to OOPIF
messagechannel.any.js 563 / 563 passingChrome —0 failedClean
/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.html OK 152 / 152
152 passing subtests are not listed: this file has more than 500 subtests, so only those that did not pass are kept.
/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.serviceworker.html OK 137 / 137
137 passing subtests are not listed: this file has more than 500 subtests, so only those that did not pass are kept.
/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.sharedworker.html OK 137 / 137
137 passing subtests are not listed: this file has more than 500 subtests, so only those that did not pass are kept.
/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.worker.html OK 137 / 137
137 passing subtests are not listed: this file has more than 500 subtests, so only those that did not pass are kept.
structured-cloning-error-extra.html 2 / 2 passingChrome —0 failedClean
2 passing subtests
- Throwing name getter fails serialization
- Errors sent across realms should preserve their type
structured-cloning-error-stack-optional.sub.window.js 12 / 20 passingChrome —8 failedWith failures
- ¶
FAILpage-created DOMException (structuredClone())
assert_equals: expected (string) "some message: InvalidStateError\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:12:10\n at Test.<anonymous> (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:41:19)\n at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)\n at test (http://web-platform.test:8000/resources/testharness.js:633:30)\n at stackTests (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:40:3)\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:11:1" but got (undefined) undefined
- ¶
FAILpage-created DOMException (worker)
assert_equals: expected (string) "some message: InvalidStateError\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:12:10\n at Test.<anonymous> (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:53:19)\n at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)\n at async_test (http://web-platform.test:8000/resources/testharness.js:681:34)\n at stackTests (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:52:3)\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:11:1" but got (undefined) undefined
- ¶
FAILpage-created DOMException (cross-site iframe)
assert_equals: expected (string) "some message: InvalidStateError\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:12:10\n at iframeTest (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:72:19)\n at Test.<anonymous> (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:99:5)\n at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)\n at async_test (http://web-platform.test:8000/resources/testharness.js:681:34)\n at stackTests (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:96:3)\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:11:1" but got (undefined) undefined
- ¶
FAILpage-created DOMException (same-origin iframe)
assert_equals: expected (string) "some message: InvalidStateError\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:12:10\n at iframeTest (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:72:19)\n at Test.<anonymous> (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:104:5)\n at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)\n at async_test (http://web-platform.test:8000/resources/testharness.js:681:34)\n at stackTests (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:102:3)\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:11:1" but got (undefined) undefined
- ¶
FAILweb API-created DOMException (structuredClone())
assert_equals: expected (string) "InvalidCharacterError: InvalidCharacterError\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:33:14\n at Test.<anonymous> (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:41:19)\n at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)\n at test (http://web-platform.test:8000/resources/testharness.js:633:30)\n at stackTests (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:40:3)\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:31:1" but got (undefined) undefined
- ¶
FAILweb API-created DOMException (worker)
assert_equals: expected (string) "InvalidCharacterError: InvalidCharacterError\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:33:14\n at Test.<anonymous> (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:53:19)\n at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)\n at async_test (http://web-platform.test:8000/resources/testharness.js:681:34)\n at stackTests (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:52:3)\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:31:1" but got (undefined) undefined
- ¶
FAILweb API-created DOMException (cross-site iframe)
assert_equals: expected (string) "InvalidCharacterError: InvalidCharacterError\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:33:14\n at iframeTest (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:72:19)\n at Test.<anonymous> (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:99:5)\n at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)\n at async_test (http://web-platform.test:8000/resources/testharness.js:681:34)\n at stackTests (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:96:3)\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:31:1" but got (undefined) undefined
- ¶
FAILweb API-created DOMException (same-origin iframe)
assert_equals: expected (string) "InvalidCharacterError: InvalidCharacterError\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:33:14\n at iframeTest (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:72:19)\n at Test.<anonymous> (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:104:5)\n at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)\n at async_test (http://web-platform.test:8000/resources/testharness.js:681:34)\n at stackTests (http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:102:3)\n at http://web-platform.test:8000/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window.js:31:1" but got (undefined) undefined
12 passing subtests
- page-created Error (structuredClone())
- page-created Error (worker)
- page-created Error (cross-site iframe)
- page-created Error (same-origin iframe)
- JS-engine-created TypeError (structuredClone())
- JS-engine-created TypeError (worker)
- JS-engine-created TypeError (cross-site iframe)
- JS-engine-created TypeError (same-origin iframe)
- web API-created TypeError (structuredClone())
- web API-created TypeError (worker)
- web API-created TypeError (cross-site iframe)
- web API-created TypeError (same-origin iframe)
structured-cloning-error-stack.window.js 7 / 10 passingChrome —3 failedWith failures
- ¶
FAILstructuredClone() preserves .stack on DOMException
assert_equals: cloned stack must be a string expected "string" but got "undefined"
- ¶
FAILstructuredClone() preserves .stack on a thrown DOMException
assert_equals: cloned stack must be a string expected "string" but got "undefined"
- ¶
FAILstructuredClone() preserves .stack via [[Stack]] internal slot, not as own property
assert_false: cloned error must not have an own stack property expected false got true
7 passing subtests
- structuredClone() preserves .stack on Error
- structuredClone() preserves .stack on TypeError
- structuredClone() preserves .stack on RangeError
- structuredClone() preserves .stack on EvalError
- structuredClone() preserves .stack on ReferenceError
- structuredClone() preserves .stack on SyntaxError
- structuredClone() preserves .stack on URIError
structuredclone_0.html 43 / 43 passingChrome —0 failedClean
43 passing subtests
- Primitive string is cloned
- Primitive integer is cloned
- Primitive floating point is cloned
- Primitive floating point (negative) is cloned
- Primitive number (hex) is cloned
- Primitive number (scientific) is cloned
- Primitive boolean is cloned
- Instance of Boolean is cloned
- Instance of Number is cloned
- Instance of String is cloned
- Instance of Date is cloned
- Instance of RegExp is cloned
- Value 'null' is cloned
- Value 'undefined' is cloned
- Object properties are cloned
- Prototype chains are not walked.
- Property descriptors of Objects are not cloned
- Cycles are preserved in Objects
- Identity of duplicates is preserved
- Property order is preserved
- Enumerable properties of Arrays are cloned
- Property descriptors of Arrays are not cloned
- Cycles are preserved in Arrays
- ImageData object can be cloned
- ImageData expandos are not cloned
- Window objects cannot be cloned
- Document objects cannot be cloned
- Empty Error objects can be cloned
- Error objects can be cloned
- EvalError objects can be cloned
- RangeError objects can be cloned
- ReferenceError objects can be cloned
- SyntaxError objects can be cloned
- TypeError objects can be cloned
- URIError objects can be cloned
- URIError objects from other realms are treated as URIError
- Cloning a modified Error
- Error.message: getter is ignored when cloning
- Error.message: undefined property is stringified
- DOMException objects can be cloned
- DOMException objects created by the UA can be cloned
- QuotaExceededError objects can be cloned
- QuotaExceededError objects with empty quota/requested can be cloned
transfer-errors.window.js 12 / 17 passingChrome —5 failedWith failures
- ¶
FAILSerialize should throw before a detached ArrayBuffer is found
assert_throws_exactly: function "() => self.postMessage({ get whatever() { throw customError } }, "*", [transferable])" threw object "DataCloneError: DataCloneError" but we expected it to throw object "Error: hi" - ¶
FAILCannot transfer ArrayBuffer detached while the message was serialized
assert_throws_dom: function "() => self.postMessage(message, "*", [transferable])" did not throw
- ¶
FAILSerialize should throw before a detached MessagePort is found
assert_throws_exactly: function "() => self.postMessage({ get whatever() { throw customError } }, "*", [transferable])" threw object "DataCloneError: DataCloneError" but we expected it to throw object "Error: hi" - ¶
FAILSerialize should throw before a detached ImageBitmap is found
assert_throws_exactly: function "() => self.postMessage({ get whatever() { throw customError } }, "*", [transferable])" threw object "DataCloneError: DataCloneError" but we expected it to throw object "Error: hi" - ¶
FAILSerialize should throw before a detached OffscreenCanvas is found
assert_throws_exactly: function "() => self.postMessage({ get whatever() { throw customError } }, "*", [transferable])" threw object "DataCloneError: DataCloneError" but we expected it to throw object "Error: hi"
12 passing subtests
- Cannot transfer all objects
- Cannot transfer the same ArrayBuffer twice
- Serialize should make the ArrayBuffer detached, so it cannot be transferred again
- Cannot transfer the same MessagePort twice
- Serialize should make the MessagePort detached, so it cannot be transferred again
- Cannot transfer MessagePort detached while the message was serialized
- Cannot transfer the same ImageBitmap twice
- Serialize should make the ImageBitmap detached, so it cannot be transferred again
- Cannot transfer ImageBitmap detached while the message was serialized
- Cannot transfer the same OffscreenCanvas twice
- Serialize should make the OffscreenCanvas detached, so it cannot be transferred again
- Cannot transfer OffscreenCanvas detached while the message was serialized
window-postmessage.window.js 152 / 152 passingChrome —0 failedClean
152 passing subtests
- primitive undefined
- primitive null
- primitive true
- primitive false
- primitive string, empty string
- primitive string, lone high surrogate
- primitive string, lone low surrogate
- primitive string, NUL
- primitive string, astral character
- primitive number, 0.2
- primitive number, 0
- primitive number, -0
- primitive number, NaN
- primitive number, Infinity
- primitive number, -Infinity
- primitive number, 9007199254740992
- primitive number, -9007199254740992
- primitive number, 9007199254740994
- primitive number, -9007199254740994
- primitive BigInt, 0n
- primitive BigInt, -0n
- primitive BigInt, -9007199254740994000n
- primitive BigInt, -9007199254740994000900719925474099400090071992547409940009007199254740994000n
- Array primitives
- Object primitives
- Boolean true
- Boolean false
- Array Boolean objects
- Object Boolean objects
- String empty string
- String lone high surrogate
- String lone low surrogate
- String NUL
- String astral character
- Array String objects
- Object String objects
- Number 0.2
- Number 0
- Number -0
- Number NaN
- Number Infinity
- Number -Infinity
- Number 9007199254740992
- Number -9007199254740992
- Number 9007199254740994
- Number -9007199254740994
- BigInt -9007199254740994n
- Array Number objects
- Object Number objects
- Date 0
- Date -0
- Date -8.64e15
- Date 8.64e15
- Array Date objects
- Object Date objects
- RegExp flags and lastIndex
- RegExp sticky flag
- RegExp unicode flag
- RegExp empty
- RegExp slash
- RegExp new line
- Array RegExp object, RegExp flags and lastIndex
- Array RegExp object, RegExp sticky flag
- Array RegExp object, RegExp unicode flag
- Array RegExp object, RegExp empty
- Array RegExp object, RegExp slash
- Array RegExp object, RegExp new line
- Object RegExp object, RegExp flags and lastIndex
- Object RegExp object, RegExp sticky flag
- Object RegExp object, RegExp unicode flag
- Object RegExp object, RegExp empty
- Object RegExp object, RegExp slash
- Object RegExp object, RegExp new line
- Empty Error object
- Error object
- EvalError object
- RangeError object
- ReferenceError object
- SyntaxError object
- TypeError object
- URIError object
- Blob basic
- Blob unpaired high surrogate (invalid utf-8)
- Blob unpaired low surrogate (invalid utf-8)
- Blob paired surrogates (invalid utf-8)
- Blob empty
- Blob NUL
- Array Blob object, Blob basic
- Array Blob object, Blob unpaired high surrogate (invalid utf-8)
- Array Blob object, Blob unpaired low surrogate (invalid utf-8)
- Array Blob object, Blob paired surrogates (invalid utf-8)
- Array Blob object, Blob empty
- Array Blob object, Blob NUL
- Array Blob object, two Blobs
- Object Blob object, Blob basic
- Object Blob object, Blob unpaired high surrogate (invalid utf-8)
- Object Blob object, Blob unpaired low surrogate (invalid utf-8)
- Object Blob object, Blob paired surrogates (invalid utf-8)
- Object Blob object, Blob empty
- Object Blob object, Blob NUL
- File basic
- FileList empty
- Array FileList object, FileList empty
- Object FileList object, FileList empty
- ImageData 1x1 transparent black
- ImageData 1x1 non-transparent non-black
- Array ImageData object, ImageData 1x1 transparent black
- Array ImageData object, ImageData 1x1 non-transparent non-black
- Object ImageData object, ImageData 1x1 transparent black
- Object ImageData object, ImageData 1x1 non-transparent non-black
- Array sparse
- Array with non-index property
- Object with index property and length
- Array with circular reference
- Object with circular reference
- Array with identical property values
- Object with identical property values
- Object with property on prototype
- Object with non-enumerable property
- Object with non-writable property
- Object with non-configurable property
- Object with a getter that throws
- ImageBitmap 1x1 transparent black
- ImageBitmap 1x1 non-transparent non-black
- Array ImageBitmap object, ImageBitmap 1x1 transparent black
- Array ImageBitmap object, ImageBitmap 1x1 transparent non-black
- Object ImageBitmap object, ImageBitmap 1x1 transparent black
- Object ImageBitmap object, ImageBitmap 1x1 transparent non-black
- ObjectPrototype must lose its exotic-ness when cloned
- Serializing a non-serializable platform object fails
- An object whose interface is deleted from the global must still deserialize
- A subclass instance will deserialize as its closest serializable superclass
- Resizable ArrayBuffer
- Growable SharedArrayBuffer
- Length-tracking TypedArray
- Length-tracking DataView
- Serializing OOB TypedArray throws
- Serializing OOB DataView throws
- ArrayBuffer
- MessagePort
- ImageBitmap
- OffscreenCanvas
- A detached ArrayBuffer cannot be transferred
- A detached platform object cannot be transferred
- Transferring a non-transferable platform object fails
- An object whose interface is deleted from the global object must still be received
- A subclass instance will be received as its closest transferable superclass
- Resizable ArrayBuffer is transferable
- Length-tracking TypedArray is transferable
- Length-tracking DataView is transferable
- Transferring OOB TypedArray throws
- Transferring OOB DataView throws