| Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-network-uisourcecode.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-network-uisourcecode.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-network-uisourcecode.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..23e6ad2f7b10b825a86f1d45dad9a5ad58382aff
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-tabbed-editor-opens-network-uisourcecode.html
|
| @@ -0,0 +1,43 @@
|
| +<html>
|
| +<head>
|
| +<script src="../inspector-test.js"></script>
|
| +<script src="../debugger-test.js"></script>
|
| +<script src="../workspace-test.js"></script>
|
| +<script src="../isolated-filesystem-test.js"></script>
|
| +<script src="./persistence-test.js"></script>
|
| +<script src="./resources/foo.js"></script>
|
| +<script>
|
| +
|
| +function test()
|
| +{
|
| + var fs = new InspectorTest.TestFileSystem("file:///var/www");
|
| + var fsEntry = InspectorTest.addFooJSFile(fs);
|
| + fs.addFileMapping("http://127.0.0.1:8000", "/");
|
| + fs.reportCreated(function() { });
|
| + InspectorTest.waitForBinding("foo.js").then(onBindingCreated);
|
| +
|
| + function onBindingCreated(binding)
|
| + {
|
| + InspectorTest.addResult("Binding created: " + binding);
|
| + InspectorTest.addResult("request open uiSourceCode: " + binding.fileSystem.url());
|
| + WebInspector.panels.sources.showUISourceCode(binding.fileSystem, 0, 0);
|
| + dumpEditorTabs();
|
| + InspectorTest.completeTest();
|
| + }
|
| +
|
| + function dumpEditorTabs()
|
| + {
|
| + var editorContainer = WebInspector.panels.sources._sourcesView._editorContainer;
|
| + var openedUISourceCodes = editorContainer._tabIds.keysArray();
|
| + openedUISourceCodes.sort((a, b) => a.url().compareTo(b.url()));
|
| + InspectorTest.addResult("Opened tabs: ");
|
| + for (code of openedUISourceCodes)
|
| + InspectorTest.addResult(" " + code.url());
|
| + }
|
| +};
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>Verify that for a fileSystem UISourceCode with network binding TabbedEditorContainer opens network UISourceCode.</p>
|
| +</body>
|
| +</html>
|
|
|