Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: simplify test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..cb0d093ee5c848ef667fb0288d7da70430bcfdd9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html
@@ -0,0 +1,59 @@
+<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");
+ InspectorTest.addFooJSFile(fs);
+ fs.reportCreated(function() { });
+
+ InspectorTest.runTestSuite([
+ function waitForUISourceCodes(next)
+ {
+ Promise.all([
+ InspectorTest.waitForUISourceCode("foo.js", WebInspector.projectTypes.Network),
+ InspectorTest.waitForUISourceCode("foo.js", WebInspector.projectTypes.FileSystem)
+ ]).then(next);
+ },
+
+ function goToSourceDialogBeforeBinding(next)
+ {
+ dumpGoToSourceDialog();
+ next();
+ },
+
+ function addFileSystemMapping(next)
+ {
+ WebInspector.fileSystemMapping.addFileMapping(fs.fileSystemPath, "http://127.0.0.1:8000", "/");
+ InspectorTest.waitForBinding("foo.js").then(next);
+ },
+
+ function goToSourceAfterBinding(next)
+ {
+ dumpGoToSourceDialog();
+ next();
+ },
+ ]);
+
+ function dumpGoToSourceDialog()
+ {
+ WebInspector.panels.sources._sourcesView.showOpenResourceDialog();
+ var dialog = WebInspector.OpenResourceDialog._instanceForTest;
+ for (var i = 0; i < dialog.itemCount(); ++i)
+ InspectorTest.addResult(dialog.itemKeyAt(i));
+ WebInspector.Dialog._instance.detach();
+ }
+};
+</script>
+</head>
+<body onload="runTest()">
+<p>Verify that GoTo source dialog filters out mapped uiSourceCodes.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698