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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-git-folders.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-git-folders.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-git-folders.html
new file mode 100644
index 0000000000000000000000000000000000000000..7f1d5badbcac20a219a7dc07c7da4f14bd70d097
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-git-folders.html
@@ -0,0 +1,60 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../isolated-filesystem-test.js"></script>
+<script src="./persistence-test.js"></script>
+<script src="./automapping-test.js"></script>
+<script>
+
+function test()
+{
+ var automappingTest = new InspectorTest.AutomappingTest(new WebInspector.Workspace());
+
+ var reset_css = {
+ content: "* { margin: 0 }",
+ time: new Date("April 29, 1959")
+ };
+ var jquery_js = {
+ content: "window.superb = 1;",
+ time: new Date("August 26, 2006")
+ };
+ var logo1 = {
+ content: "AAAA",
+ time: new Date("June 12, 2012")
+ };
+ var logo2 = {
+ content: "BBBBBBBB",
+ time: new Date("April 21, 2007")
+ };
+
+ automappingTest.addNetworkResources({
+ "http://example.com/reset.css": reset_css,
+ "http://example.com/jquery.js": jquery_js,
+ "http://example.com/logo.png": logo2
+ });
+
+ var fs = new InspectorTest.TestFileSystem("file:///var/www");
+ InspectorTest.addFiles(fs, {
+ "code/proj1/.git/HEAD": { content: "ref: refs/heads/master", time: new Date("May 12, 2007")},
+ "code/proj1/reset.css": reset_css,
+ "code/proj1/jquery.js": jquery_js,
+ "code/proj1/logo.png": logo1,
+
+ "code/proj2/.git/HEAD": { content: "ref: refs/heads/master", time: new Date("May 25, 2009")},
+ "code/proj2/reset.css": reset_css,
+ "code/proj2/jquery.js": jquery_js,
+ "code/proj2/logo.png": logo2,
+ });
+ fs.reportCreated(onFileSystemCreated);
+
+ function onFileSystemCreated()
+ {
+ automappingTest.waitUntilMappingIsStabilized(InspectorTest.completeTest.bind(InspectorTest));
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Verify that automapping is able to map ambiguous resources based on the selected project folder.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698