blob: 2bcb2a410dfa59c287f13e299277a60a191dd4d1 [file] [log] [blame]
<html>
<head>
<script type="text/javascript" src="../../http/tests/inspector/resources/protocol-test.js"></script>
<script>
function test()
{
InspectorProtocol.sendCommand("Page.enable", {});
InspectorProtocol.sendCommand("Page.archive", {}, function(event) {
var data = event.result.data;
if (!data)
ProtocolTest.log("FAIL: no data");
else if (data.length < 1000)
ProtocolTest.log("FAIL: unexpectedly short data. A serialized archive should be pretty large.");
else
ProtocolTest.log("PASS: Received archive data.");
ProtocolTest.completeTest();
});
}
</script>
</head>
<body onload="runTest()">
</body>
</html>