| 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>
|
|
|