Index: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/sourcemap-navigator-multiple-frames.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/sourcemap-navigator-multiple-frames.html b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/sourcemap-navigator-multiple-frames.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2339e49b3de96394c75380d0dbc0f27bf535e269 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/sourcemap-navigator-multiple-frames.html |
@@ -0,0 +1,48 @@ |
+<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('attachFrame1'); |
+ await Promise.all([ |
+ InspectorTest.attachFrame('frame1', './resources/sourcemap-frame.html', '_test_create-iframe1.js'), |
+ InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
+ InspectorTest.waitForSourceMap('sourcemap-style.css.map'), |
+ ]); |
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
+ |
+ InspectorTest.markStep('attachFrame2'); |
+ await Promise.all([ |
+ 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('detachFrame1'); |
+ await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js'); |
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
+ |
+ InspectorTest.markStep('detachFrame2'); |
+ await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js'); |
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
+ |
+ InspectorTest.completeTest(); |
+} |
+ |
+</script> |
+</head> |
+<body onload="runTest()"> |
+<p> |
+Verify that SourceMap sources are correctly displayed in navigator. |
+</p> |
+</body> |