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 src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
5 <script src="../../../http/tests/inspector/page-mock.js"></script> | 5 <script src="../../../http/tests/inspector/page-mock.js"></script> |
6 | 6 |
7 <script> | 7 <script> |
8 async function test() | 8 async function test() |
9 { | 9 { |
10 function createNavigatorView(constructor) | 10 function createNavigatorView(constructor) |
11 { | 11 { |
12 var navigatorView = new constructor(); | 12 var navigatorView = new constructor(); |
13 navigatorView.show(UI.inspectorView.element); | 13 navigatorView.show(UI.inspectorView.element); |
14 return navigatorView; | 14 return navigatorView; |
15 } | 15 } |
16 | 16 |
17 sourcesNavigatorView = createNavigatorView(Sources.SourcesNavigatorView); | 17 sourcesNavigatorView = createNavigatorView(Sources.SourcesNavigatorView); |
18 contentScriptsNavigatorView = createNavigatorView(Sources.ContentScriptsNavi
gatorView); | 18 contentScriptsNavigatorView = createNavigatorView(Sources.ContentScriptsNavi
gatorView); |
19 | 19 |
20 Bindings.NetworkProject.forTarget(InspectorTest.mainTarget)._reset(); | 20 Bindings.NetworkProject.forTarget(InspectorTest.mainTarget)._resetForTest(); |
| 21 Bindings.resourceMapping._resetForTest(InspectorTest.mainTarget); |
21 | 22 |
22 var pageMock = new InspectorTest.PageMock('http://example.com'); | 23 var pageMock = new InspectorTest.PageMock('http://example.com'); |
23 pageMock.disableDOMCapability(); | 24 pageMock.disableDOMCapability(); |
24 InspectorTest.connectToPage('mock-target-1', pageMock); | 25 InspectorTest.connectToPage('mock-target-1', pageMock); |
25 | 26 |
26 var uiSourceCodes = []; | 27 var uiSourceCodes = []; |
27 async function addUISourceCode(url, isContentScript) | 28 async function addUISourceCode(url, isContentScript) |
28 { | 29 { |
29 pageMock.evalScript(url, '', isContentScript); | 30 pageMock.evalScript(url, '', isContentScript); |
30 var uiSourceCode = await InspectorTest.waitForUISourceCode(url); | 31 var uiSourceCode = await InspectorTest.waitForUISourceCode(url); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 </script> | 80 </script> |
80 | 81 |
81 </head> | 82 </head> |
82 <body onload="runTest()"> | 83 <body onload="runTest()"> |
83 <p> | 84 <p> |
84 Tests scripts sorting in the scripts panel. | 85 Tests scripts sorting in the scripts panel. |
85 </p> | 86 </p> |
86 </body> | 87 </body> |
87 | 88 |
88 </html> | 89 </html> |
OLD | NEW |