Upstream version 9.38.198.0
[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.recordNetwork();
15         InspectorTest.makeSimpleXHR("GET", "resources/resource.php", true, step2);
16     }
17
18     function step2()
19     {
20         NetworkAgent.disable(step3);
21     }
22
23     function step3()
24     {
25         var request1 = InspectorTest.networkRequests().pop();
26         request1.requestContent(step4);
27     }
28
29     function step4()
30     {
31         var request1 = InspectorTest.networkRequests().pop();
32         InspectorTest.addResult("resource.content after disabling network domain: " + request1.content);
33         NetworkAgent.enable(step5);
34     }
35
36     function step5()
37     {
38         InspectorTest.completeTest();
39     }
40 }
41 </script>
42 </head>
43 <body onload="runTest()">
44  <p>
45  Tests that after disabling network domain, content saved on backend is removed.
46 <a href="https://bugs.webkit.org/show_bug.cgi?id=67995">Bug 67995</a>
47 </p>
48 </body>
49 </html>