Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-navigator.html

Issue 2832943002: DevTools: properly handle target suspension/resuming in NetworkProject (Closed)
Patch Set: address comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <head>
2 <script src="../inspector-test.js"></script>
3 <script src="./bindings-test.js"></script>
4
5 <script>
6
7 async function test()
8 {
9 var sourcesNavigator = new Sources.SourcesNavigatorView();
10 sourcesNavigator.show(UI.inspectorView.element);
11
12 InspectorTest.markStep('initialWorkspace');
13 InspectorTest.dumpNavigatorView(sourcesNavigator, false);
14
15 InspectorTest.markStep('attachFramesAndWaitForSourceMaps');
16 await Promise.all([
17 InspectorTest.attachFrame('frame1', './resources/sourcemap-frame.html', '_test_create-iframe1.js'),
18 InspectorTest.attachFrame('frame2', './resources/sourcemap-frame.html', '_test_create-iframe2.js'),
19 InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
20 InspectorTest.waitForSourceMap('sourcemap-style.css.map'),
21 ]);
22 InspectorTest.dumpNavigatorView(sourcesNavigator, false);
23
24 InspectorTest.markStep('Suspending targets.');
25 await SDK.targetManager.suspendAllTargets();
26 InspectorTest.dumpNavigatorView(sourcesNavigator, false);
27
28 InspectorTest.markStep('Resuming targets.');
29 await Promise.all([
30 SDK.targetManager.resumeAllTargets(),
31 InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
32 InspectorTest.waitForSourceMap('sourcemap-style.css.map')
33 ]);
34
35 InspectorTest.dumpNavigatorView(sourcesNavigator, false);
36
37 InspectorTest.completeTest();
38 }
39
40 </script>
41 </head>
42 <body onload="runTest()">
43 <p>
44 Verify that navigator is rendered properly when targets are suspended and resume d.
45 </p>
46 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698