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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-navigator.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-navigator.html b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-navigator.html
new file mode 100644
index 0000000000000000000000000000000000000000..221b9511784536a17717fd56c7ae2258ac5a0eb4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-navigator.html
@@ -0,0 +1,46 @@
+<head>
+<script src="../inspector-test.js"></script>
+<script src="./bindings-test.js"></script>
+
+<script>
+
+async function test()
+{
+ var sourcesNavigator = new Sources.SourcesNavigatorView();
+ sourcesNavigator.show(UI.inspectorView.element);
+
+ InspectorTest.markStep('initialWorkspace');
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false);
+
+ InspectorTest.markStep('attachFramesAndWaitForSourceMaps');
+ await Promise.all([
+ InspectorTest.attachFrame('frame1', './resources/sourcemap-frame.html', '_test_create-iframe1.js'),
+ InspectorTest.attachFrame('frame2', './resources/sourcemap-frame.html', '_test_create-iframe2.js'),
+ InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
+ InspectorTest.waitForSourceMap('sourcemap-style.css.map'),
+ ]);
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false);
+
+ InspectorTest.markStep('Suspending targets.');
+ await SDK.targetManager.suspendAllTargets();
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false);
+
+ InspectorTest.markStep('Resuming targets.');
+ await Promise.all([
+ SDK.targetManager.resumeAllTargets(),
+ InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
+ InspectorTest.waitForSourceMap('sourcemap-style.css.map')
+ ]);
+
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false);
+
+ InspectorTest.completeTest();
+}
+
+</script>
+</head>
+<body onload="runTest()">
+<p>
+Verify that navigator is rendered properly when targets are suspended and resumed.
+</p>
+</body>

Powered by Google App Engine
This is Rietveld 408576698