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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-git-folders.html

Issue 2418813005: DevTools: [Persistence] implement automapping (Closed)
Patch Set: address comments Created 4 years, 1 month 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="../isolated-filesystem-test.js"></script>
5 <script src="./persistence-test.js"></script>
6 <script src="./automapping-test.js"></script>
7 <script>
8
9 function test()
10 {
11 var automappingTest = new InspectorTest.AutomappingTest(new WebInspector.Wor kspace());
12
13 var reset_css = {
14 content: "* { margin: 0 }",
15 time: new Date("April 29, 1959")
16 };
17 var jquery_js = {
18 content: "window.superb = 1;",
19 time: new Date("August 26, 2006")
20 };
21 var logo1 = {
22 content: "AAAA",
23 time: new Date("June 12, 2012")
24 };
25 var logo2 = {
26 content: "BBBBBBBB",
27 time: new Date("April 21, 2007")
28 };
29
30 automappingTest.addNetworkResources({
31 "http://example.com/reset.css": reset_css,
32 "http://example.com/jquery.js": jquery_js,
33 "http://example.com/logo.png": logo2
34 });
35
36 var fs = new InspectorTest.TestFileSystem("file:///var/www");
37 InspectorTest.addFiles(fs, {
38 "code/proj1/.git/HEAD": { content: "ref: refs/heads/master", time: new D ate("May 12, 2007")},
39 "code/proj1/reset.css": reset_css,
40 "code/proj1/jquery.js": jquery_js,
41 "code/proj1/logo.png": logo1,
42
43 "code/proj2/.git/HEAD": { content: "ref: refs/heads/master", time: new D ate("May 25, 2009")},
44 "code/proj2/reset.css": reset_css,
45 "code/proj2/jquery.js": jquery_js,
46 "code/proj2/logo.png": logo2,
47 });
48 fs.reportCreated(onFileSystemCreated);
49
50 function onFileSystemCreated()
51 {
52 automappingTest.waitUntilMappingIsStabilized(InspectorTest.completeTest. bind(InspectorTest));
53 }
54 }
55 </script>
56 </head>
57 <body onload="runTest()">
58 <p>Verify that automapping is able to map ambiguous resources based on the selec ted project folder.</p>
59 </body>
60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698