| Test that an open WebSocket does not prevent a page from entering page cache. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| pageshow - not from cache |
| pagehide - entering cache |
| pageshow - from cache |
| PASS Page did enter and was restored from the page cache |
| PASS error event fired |
| PASS wasRestoredFromPageCache is true |
| PASS close event fired |
| PASS wasRestoredFromPageCache is true |
| PASS receivedErrorEvent is true |
| PASS closeEvent.wasClean is false |
| FAIL closeEvent.code should be 1006. Was 0. |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |