OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../http/tests/inspector/inspector-test.js"></script> |
4 <script> | 4 <script> |
5 function test() { | 5 function test() { |
6 var panel = WebInspector.showPanel("network"); | 6 var panel = WebInspector.showPanel("network"); |
7 var target = panel._networkLogView; | 7 var target = panel._networkLogView; |
8 var types = WebInspector.resourceTypes; | 8 var types = WebInspector.resourceTypes; |
9 | 9 |
10 target._toggleTypeFilter(types.XHR.name(), false); | 10 target._resourceTypeFilterUI._toggleTypeFilter(types.XHR.name(), false); |
11 InspectorTest.addResult("Clicked '" + types.XHR.name() + "' button."); | 11 InspectorTest.addResult("Clicked '" + types.XHR.name() + "' button."); |
12 | 12 |
13 var requestFoo = new WebInspector.NetworkRequest("", "", "", "", ""); | 13 var requestFoo = new WebInspector.NetworkRequest("", "", "", "", ""); |
14 requestFoo.type = types.Script; | 14 requestFoo.type = types.Script; |
15 requestFoo.requestId = "foo"; | 15 requestFoo.requestId = "foo"; |
16 target._appendRequest(requestFoo); | 16 target._appendRequest(requestFoo); |
17 var requestBar = new WebInspector.NetworkRequest("", "", "", "", ""); | 17 var requestBar = new WebInspector.NetworkRequest("", "", "", "", ""); |
18 requestBar.type = types.Script; | 18 requestBar.type = types.Script; |
19 requestBar.requestId = "bar"; | 19 requestBar.requestId = "bar"; |
20 target._appendRequest(requestBar); | 20 target._appendRequest(requestBar); |
(...skipping 17 matching lines...) Expand all Loading... |
38 | 38 |
39 InspectorTest.completeTest(); | 39 InspectorTest.completeTest(); |
40 } | 40 } |
41 | 41 |
42 </script> | 42 </script> |
43 </head> | 43 </head> |
44 <body onload="runTest()"> | 44 <body onload="runTest()"> |
45 <p>Tests that filter is reapplied when request is updated.</p> | 45 <p>Tests that filter is reapplied when request is updated.</p> |
46 </body> | 46 </body> |
47 </html> | 47 </html> |
OLD | NEW |