| <script src="../../http/tests/inspector/resources/protocol-test.js"></script> |
| InspectorProtocol.sendCommand("Page.enable", {}); |
| InspectorProtocol.sendCommand("Page.archive", {}, function(event) { |
| ProtocolTest.fail(`Page.archive returned error: '${event.error.message}'.`); |
| let data = event.result.data; |
| ProtocolTest.fail("no data"); |
| else if (data.length < 1000) |
| ProtocolTest.fail("unexpectedly short data. A serialized archive should be pretty large."); |
| ProtocolTest.pass("Received archive data."); |
| ProtocolTest.completeTest(); |
| <body onload="runTest()"> |