OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head/> | 5 </head/> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('This test calls pushState with state objects of all the differe
nt object types supported by the HTML5 "internal structured cloning algorithm" a
nd makes sure the state attribute returns the expected objects.'); | 8 description('This test calls pushState with state objects of all the differe
nt object types supported by the HTML5 "internal structured cloning algorithm" a
nd makes sure the state attribute returns the expected objects.'); |
9 | 9 |
10 if (window.testRunner) | 10 if (window.testRunner) |
(...skipping 20 matching lines...) Expand all Loading... |
31 shouldBe("+history.state", "+(new Date(0))"); | 31 shouldBe("+history.state", "+(new Date(0))"); |
32 history.pushState(new RegExp("foo", "gi"), "RegExp entry"); | 32 history.pushState(new RegExp("foo", "gi"), "RegExp entry"); |
33 shouldEvaluateTo("history.state", new RegExp("foo", "gi")); | 33 shouldEvaluateTo("history.state", new RegExp("foo", "gi")); |
34 history.pushState(new Array, "Array entry"); | 34 history.pushState(new Array, "Array entry"); |
35 shouldEvaluateTo("history.state", new Array); | 35 shouldEvaluateTo("history.state", new Array); |
36 history.pushState(new Object, "Object entry"); | 36 history.pushState(new Object, "Object entry"); |
37 shouldEvaluateTo("history.state", new Object); | 37 shouldEvaluateTo("history.state", new Object); |
38 history.pushState(document.createElement("canvas").getContext("2d").createIm
ageData(10,10), "ImageData entry"); | 38 history.pushState(document.createElement("canvas").getContext("2d").createIm
ageData(10,10), "ImageData entry"); |
39 shouldEvaluateTo("history.state", document.createElement("canvas").getContex
t("2d").createImageData(10,10)); | 39 shouldEvaluateTo("history.state", document.createElement("canvas").getContex
t("2d").createImageData(10,10)); |
40 </script> | 40 </script> |
41 <script src="../../js/resources/js-test-post.js"></script> | |
42 </body> | 41 </body> |
43 </html> | 42 </html> |
44 | 43 |
OLD | NEW |