| Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..edaf7d0f3f18110b37b5ea38a2f3cb27cf879fcd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html
|
| @@ -0,0 +1,35 @@
|
| +<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");
|
| + fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").addFile("foo.js", "window.foo = ()=>'foo';");
|
| + fs.reportCreated(function() { });
|
| + InspectorTest.waitForBinding("foo.js", onBindingCreated);
|
| + WebInspector.fileSystemMapping.addFileSystem(fs.fileSystemPath);
|
| + WebInspector.fileSystemMapping.addFileMapping(fs.fileSystemPath, "http://127.0.0.1:8000", "/");
|
| +
|
| + function onBindingCreated()
|
| + {
|
| + InspectorTest.addResult("BindigCreated");
|
| + WebInspector.panels.sources._sourcesView.showOpenResourceDialog();
|
| + var dialog = WebInspector.OpenResourceDialog._instanceForTest;
|
| + for (var i = 0; i < dialog.itemCount(); ++i)
|
| + InspectorTest.addResult(dialog.itemKeyAt(i));
|
| + InspectorTest.completeTest();
|
| + }
|
| +};
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>Verify that GoTo source dialog filters out mapped uiSourceCodes.</p>
|
| +</body>
|
| +</html>
|
|
|