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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../inspector-test.js"></script>
4 <script src="../debugger-test.js"></script>
5 <script src="../workspace-test.js"></script>
6 <script src="../isolated-filesystem-test.js"></script>
7 <script src="./persistence-test.js"></script>
8 <script src="./resources/foo.js"></script>
9 <script>
10
11 function test()
12 {
13 var fs = new InspectorTest.TestFileSystem("file:///var/www");
14 InspectorTest.addFooJSFile(fs);
15 fs.reportCreated(function() { });
16
17 InspectorTest.runTestSuite([
18 function waitForUISourceCodes(next)
19 {
20 Promise.all([
21 InspectorTest.waitForUISourceCode("foo.js", WebInspector.project Types.Network),
22 InspectorTest.waitForUISourceCode("foo.js", WebInspector.project Types.FileSystem)
23 ]).then(next);
24 },
25
26 function goToSourceDialogBeforeBinding(next)
27 {
28 dumpGoToSourceDialog();
29 next();
30 },
31
32 function addFileSystemMapping(next)
33 {
34 WebInspector.fileSystemMapping.addFileMapping(fs.fileSystemPath, "ht tp://127.0.0.1:8000", "/");
35 InspectorTest.waitForBinding("foo.js").then(next);
36 },
37
38 function goToSourceAfterBinding(next)
39 {
40 dumpGoToSourceDialog();
41 next();
42 },
43 ]);
44
45 function dumpGoToSourceDialog()
46 {
47 WebInspector.panels.sources._sourcesView.showOpenResourceDialog();
48 var dialog = WebInspector.OpenResourceDialog._instanceForTest;
49 for (var i = 0; i < dialog.itemCount(); ++i)
50 InspectorTest.addResult(dialog.itemKeyAt(i));
51 WebInspector.Dialog._instance.detach();
52 }
53 };
54 </script>
55 </head>
56 <body onload="runTest()">
57 <p>Verify that GoTo source dialog filters out mapped uiSourceCodes.</p>
58 </body>
59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698