blob: 4b42c6f8c04108bdf18161972d8e0714124a9af6 [file] [log] [blame]
This test calls pushState with state objects of all the different object types supported by the HTML5 "internal structured cloning algorithm" and makes sure the state attribute returns the expected objects.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS history.state is defined.
history.state should initially be null.
PASS history.state is null
PASS history.state is undefined.
PASS history.state is null
PASS history.state is false
PASS history.state is true
PASS history.state is 42
PASS history.state is "String"
PASS +history.state is +(new Date(0))
PASS history.state == '/foo/gi' is true
PASS history.state == '' is true
PASS history.state == '[object Object]' is true
PASS history.state == '[object ImageData]' is true
PASS successfullyParsed is true
TEST COMPLETE