| Index: LayoutTests/fast/storage/serialized-script-value-expected.txt
|
| diff --git a/LayoutTests/fast/storage/serialized-script-value-expected.txt b/LayoutTests/fast/storage/serialized-script-value-expected.txt
|
| index f56d786aef722e0097455492113bf47e3ad74fa6..d5139636f0331b19d2bd9438cc09b1181806450a 100644
|
| --- a/LayoutTests/fast/storage/serialized-script-value-expected.txt
|
| +++ b/LayoutTests/fast/storage/serialized-script-value-expected.txt
|
| @@ -5,9 +5,29 @@ PASS areValuesIdentical(newObj, obj) is true
|
| Serialize {"foo":"zoo","bar":{"baz":"myNewKey"}}:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to {"foo":"zoo","bar":{"baz":"myNewKey"}}:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize {"foo":"zoo","bar":{"baz":"myNewKey"}}:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Deserialize to {"foo":"zoo","bar":"myNewKey"}:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize {"foo":"zoo","bar":"myNewKey"}:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| Deserialize to {"foo":"zoo","bar":"myNewKey"}:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| Serialize {"foo":"zoo","bar":"myNewKey"}:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| @@ -17,6 +37,16 @@ PASS areValuesIdentical(newObj, obj) is true
|
| Serialize []:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to []:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize []:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to {"foo":"zoo"}:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| @@ -47,39 +77,109 @@ PASS areValuesIdentical(newObj, obj) is true
|
| Serialize undefined:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to undefined:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize undefined:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to true:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize true:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to true:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize true:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to false:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize false:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to false:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize false:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to 10:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize 10:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to 10:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize 10:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to -10:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize -10:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to -10:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize -10:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to 1073741824:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize 1073741824:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to 1073741824:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize 1073741824:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Deserialize to 36028797018963970:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize 36028797018963970:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| Deserialize to 36028797018963970:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| Serialize 36028797018963970:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| @@ -89,33 +189,93 @@ PASS areValuesIdentical(newObj, obj) is true
|
| Serialize 1.23:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to 1.23:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize 1.23:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to 2147483647:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize 2147483647:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to 2147483647:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize 2147483647:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to -2147483648:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize -2147483648:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to -2147483648:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize -2147483648:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to 2147483648:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize 2147483648:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to 2147483648:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize 2147483648:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to 4294967295:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize 4294967295:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to 4294967295:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize 4294967295:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Deserialize to "":
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize "":
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| Deserialize to "":
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| Serialize "":
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| @@ -125,15 +285,45 @@ PASS areValuesIdentical(newObj, obj) is true
|
| Serialize "abc":
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to "abc":
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize "abc":
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to {"integer":123}:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize {"integer":123}:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to {"integer":123}:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize {"integer":123}:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Deserialize to {"string":"str"}:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize {"string":"str"}:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| Deserialize to {"string":"str"}:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| Serialize {"string":"str"}:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| @@ -143,15 +333,45 @@ PASS areValuesIdentical(newObj, obj) is true
|
| Serialize {"list":[1,2,3]}:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to {"list":[1,2,3]}:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize {"list":[1,2,3]}:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to null:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize null:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to null:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize null:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Deserialize to {}:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize {}:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| Deserialize to {}:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| Serialize {}:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| @@ -161,12 +381,32 @@ PASS areValuesIdentical(newObj, obj) is true
|
| Serialize {"inner":{"hello":"there"},"outer":{"hello":"there"}}:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to {"inner":{"hello":"there"},"outer":{"hello":"there"}}:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize {"inner":{"hello":"there"},"outer":{"hello":"there"}}:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to {"hello":"there"}:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| Serialize {"hello":"there"}:
|
| PASS bufferView.length is expectedBufferValues.length
|
|
|
| +Backwards compatibility with version 3 serialization.
|
| +
|
| +Deserialize to {"hello":"there"}:
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| +PASS areValuesIdentical(newObj, obj) is true
|
| +Serialize {"hello":"there"}:
|
| +PASS bufferView.length is expectedBufferValues.length
|
| +
|
| Deserialize to {"a":"a","u":"αβ","d":42}:
|
| PASS JSON.stringify(newObj) is JSON.stringify(obj)
|
| PASS areValuesIdentical(newObj, obj) is true
|
| @@ -205,6 +445,11 @@ PASS thrownException.code is expectedException
|
| PASS areValuesIdentical(blobObj1, blobObj2) is true
|
| PASS areValuesIdentical(dictionaryWithBlob1, dictionaryWithBlob2) is true
|
| PASS self.blobContent1 is self.blobContent2
|
| +
|
| +Test deserialization of File objects
|
| +PASS areValuesIdentical(fileObj1, fileObj2) is true
|
| +PASS areValuesIdentical(dictionaryWithFile1, dictionaryWithFile2) is true
|
| +PASS self.fileContents1 is self.fileContents2
|
| PASS successfullyParsed is true
|
|
|
| TEST COMPLETE
|
|
|