Upstream version 11.39.250.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / file-reader-with-network-panel.html
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script src="../http/tests/inspector/network-test.js"></script>
5 <script>
6 function readBlob()
7 {
8     var reader = new FileReader();
9     reader.onloadend = function () {
10         console.log('done');
11     };
12     reader.readAsArrayBuffer(new Blob([ 'test' ]));
13 }
14
15 function test()
16 {
17     InspectorTest.resetInspectorResourcesData(main);
18
19     function main()
20     {
21         InspectorTest.addConsoleSniffer(messageAdded);
22         InspectorTest.evaluateInPage("readBlob();");
23     }
24
25     function messageAdded(payload)
26     {
27         var requests = InspectorTest.networkRequests();
28         InspectorTest.addResult("requests in the network panel: " + requests.length);
29         InspectorTest.assertTrue(requests.length == 0, "Blob load request to the browser is shown in the network panel.");
30         InspectorTest.completeTest();
31     }
32 }
33
34 </script>
35 </head>
36 <body onload="runTest()">
37 <p>Tests that FileReader's Blob request isn't shown in network panel.</p>
38 </body>
39 </html>