| Index: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-bindings.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-bindings.html b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-bindings.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c8cbfd9bef876b1a16b41cf73061a6999478707f
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/suspendtarget-bindings.html
|
| @@ -0,0 +1,42 @@
|
| +<head>
|
| +<script src="../inspector-test.js"></script>
|
| +<script src="./bindings-test.js"></script>
|
| +
|
| +<script>
|
| +
|
| +async function test()
|
| +{
|
| + InspectorTest.markStep('initialWorkspace');
|
| + var snapshot = InspectorTest.dumpWorkspace();
|
| +
|
| + InspectorTest.markStep('createIframesAndWaitForSourceMaps');
|
| + 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')
|
| + ]);
|
| + snapshot = InspectorTest.dumpWorkspace(snapshot);
|
| +
|
| + InspectorTest.markStep('Suspending targets.');
|
| + await SDK.targetManager.suspendAllTargets();
|
| + snapshot = InspectorTest.dumpWorkspace(snapshot);
|
| +
|
| + InspectorTest.markStep('Resuming targets.');
|
| + await Promise.all([
|
| + SDK.targetManager.resumeAllTargets(),
|
| + InspectorTest.waitForSourceMap('sourcemap-script.js.map'),
|
| + InspectorTest.waitForSourceMap('sourcemap-style.css.map')
|
| + ]);
|
| + snapshot = InspectorTest.dumpWorkspace(snapshot);
|
| +
|
| + InspectorTest.completeTest();
|
| +}
|
| +
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>
|
| +Verify that bindings handle target suspension as expected.
|
| +</p>
|
| +</body>
|
|
|