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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-live-edit.html

Issue 2542073002: DevTools: [Persistence] validate persistence binding. (Closed)
Patch Set: rebaseline tests Created 4 years 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/persistence/persistence-test.js"></sc ript>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script > 6 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script >
6 <script src="../../../http/tests/inspector/live-edit-test.js"></script> 7 <script src="../../../http/tests/inspector/live-edit-test.js"></script>
7 <script> 8 <script>
8 function addScript() 9 function addScript()
9 { 10 {
10 var script = document.createElement("script"); 11 var script = document.createElement("script");
11 script.src = "resources/edit-me.js"; 12 script.src = "resources/edit-me.js";
12 document.head.appendChild(script); 13 document.head.appendChild(script);
13 } 14 }
14 15
15 function test() 16 function test()
16 { 17 {
17 InspectorTest.runTestSuite([ 18 InspectorTest.runTestSuite([
18 function testLiveEditReload(next) 19 function testLiveEditReload(next)
19 { 20 {
20 var fs = new InspectorTest.TestFileSystem("file:///var/www"); 21 var fs = new InspectorTest.TestFileSystem("file:///var/www");
21 fs.root.mkdir("html").addFile("edit-me.js", "function f()\n{\n re turn 0;\n}\n"); 22 fs.root.mkdir("html").addFile("edit-me.js", "function f()\n{\n re turn 0;\n}\n");
22 fs.root.addFile("bar.js", "<bar content>"); 23 fs.root.addFile("bar.js", "<bar content>");
23 InspectorTest.addResult("Adding file system."); 24 InspectorTest.addResult("Adding file system.");
24 fs.addFileMapping(Common.ParsedURL.completeURL(InspectorTest.mainTar get.inspectedURL(), "resources/"), "/html/"); 25 fs.addFileMapping(Common.ParsedURL.completeURL(InspectorTest.mainTar get.inspectedURL(), "resources/"), "/html/");
25 fs.reportCreated(fileSystemCreated); 26 fs.reportCreated(fileSystemCreated);
26 27
27 function fileSystemCreated() 28 function fileSystemCreated()
28 { 29 {
29 InspectorTest.evaluateInPage("addScript()", didAddScript); 30 InspectorTest.evaluateInPage("addScript()");
31 InspectorTest.waitForBinding("edit-me.js").then(didAddScript);
30 } 32 }
31 33
32 function didAddScript() 34 function didAddScript()
33 { 35 {
34 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource ); 36 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource );
35 } 37 }
36 38
37 function didShowScriptSource(sourceFrame) 39 function didShowScriptSource(sourceFrame)
38 { 40 {
39 InspectorTest.addResult("Editing filesystem resource: " + source Frame.uiSourceCode().url()); 41 InspectorTest.addResult("Editing filesystem resource: " + source Frame.uiSourceCode().url());
(...skipping 14 matching lines...) Expand all
54 } 56 }
55 } 57 }
56 ]); 58 ]);
57 }; 59 };
58 </script> 60 </script>
59 </head> 61 </head>
60 <body onload="runTest()"> 62 <body onload="runTest()">
61 <p>Tests file system project mappings in combination with live edit.</p> 63 <p>Tests file system project mappings in combination with live edit.</p>
62 </body> 64 </body>
63 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698