- add third_party src.
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / inspector / network / network-disabling-check-no-memory-leak.html
1 <html>
2 <head>
3 <script src="../inspector-test.js"></script>
4 <script src="../network-test.js"></script>
5 <script>
6 function test()
7 {
8     // Since this test could be run together with other inspector backend cache
9     // tests, we need to reset size limits to default ones.
10     InspectorTest.resetInspectorResourcesData(step1);
11
12     function step1()
13     {
14         InspectorTest.makeSimpleXHR("GET", "resources/resource.php", true, step2);
15     }
16
17     function step2()
18     {
19         NetworkAgent.disable(step3);
20     }
21
22     function step3()
23     {
24         var request1 = WebInspector.panel("network").requests[WebInspector.panel("network").requests.length - 1];
25         request1.requestContent(step4);
26     }
27
28     function step4()
29     {
30         var request1 = WebInspector.panel("network").requests[WebInspector.panel("network").requests.length - 1];
31         InspectorTest.addResult("resource.content after disabling network domain: " + request1.content);
32         NetworkAgent.enable(step5);
33     }
34
35     function step5()
36     {
37         InspectorTest.completeTest();
38     }
39 }
40 </script>
41 </head>
42 <body onload="runTest()">
43  <p>
44  Tests that after disabling network domain, content saved on backend is removed.
45 <a href="https://bugs.webkit.org/show_bug.cgi?id=67995">Bug 67995</a>
46 </p>
47 </body>
48 </html>