| 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>
|
|
|