blob: 40b27eadae2534d5ec8b42e75fda05548640f9e4 [file] [log] [blame]
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
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
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
PASS JSON.stringify(newObj) is JSON.stringify(obj)
PASS areValuesIdentical(newObj, obj) is true
Serialize {"foo":"zoo"}:
PASS bufferView.length is expectedBufferValues.length
Deserialize to {"foo":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 {"foo":null}:
PASS bufferView.length is expectedBufferValues.length
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 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
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
PASS JSON.stringify(newObj) is JSON.stringify(obj)
PASS areValuesIdentical(newObj, obj) is true
Serialize false:
PASS bufferView.length is expectedBufferValues.length
Deserialize to [null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,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,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]:
PASS bufferView.length is expectedBufferValues.length
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
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
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
PASS JSON.stringify(newObj) is JSON.stringify(obj)
PASS areValuesIdentical(newObj, obj) is true
Serialize 36028797018963970:
PASS bufferView.length is expectedBufferValues.length
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 "":
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 "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
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
PASS JSON.stringify(newObj) is JSON.stringify(obj)
PASS areValuesIdentical(newObj, obj) is true
Serialize {"string":"str"}:
PASS bufferView.length is expectedBufferValues.length
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
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
PASS JSON.stringify(newObj) is JSON.stringify(obj)
PASS areValuesIdentical(newObj, obj) is true
Serialize {}:
PASS bufferView.length is expectedBufferValues.length
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
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
PASS JSON.stringify(newObj) is JSON.stringify(obj)
PASS areValuesIdentical(newObj, obj) is true
Serialize {"a":"a","u":"αβ","d":42}:
PASS bufferView.length is expectedBufferValues.length
Deserialize to {"a":"ab","u":"αβ","d":42}:
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 {"a":"ab","u":"αβ","d":42}:
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
Deserialize to ["foo","bar"]:
PASS JSON.stringify(newObj) is JSON.stringify(obj)
PASS areValuesIdentical(newObj, obj) is true
Serialize ["foo","bar"]:
PASS bufferView.length is expectedBufferValues.length
Deserialize to {"expando":{}}:
PASS JSON.stringify(newObj) is JSON.stringify(obj)
PASS areValuesIdentical(newObj, obj) is true
Serialize {"expando":{}}:
PASS bufferView.length is expectedBufferValues.length
Deserialize to {"expando":{}}:
PASS JSON.stringify(newObj) is JSON.stringify(obj)
PASS areValuesIdentical(newObj, obj) is true
Serialize {"expando":{}}:
PASS bufferView.length is expectedBufferValues.length
Serialize undefined:
PASS thrownException.code is expectedException
PASS successfullyParsed is true
TEST COMPLETE