6a78f8def1ab37e3058e3a2ff5d00e926b550592
[WebKit-https.git] / LayoutTests / inspector / page / archive.html
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/resources/protocol-test.js"></script>
4 <script>
5 function test()
6 {
7     InspectorProtocol.sendCommand("Page.archive", {}, function(event) {
8         var data = event.result.data;
9         if (!data)
10             ProtocolTest.log("FAIL: no data");
11         else if (data.length < 1000)
12             ProtocolTest.log("FAIL: unexpectedly short data. A serialized archive should be pretty large.");
13         else
14             ProtocolTest.log("PASS: Received archive data.");
15
16         ProtocolTest.completeTest();
17     });
18 }
19 </script>
20 </head>
21 <body onload="runTest()">
22 </body>
23 </html>