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

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

Issue 1564113003: DevTools: merge uisourcecode's url-alike members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 11 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
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/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/workspace-test.js"></script> 5 <script src="../../../http/tests/inspector/workspace-test.js"></script>
6 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script > 6 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script >
7 <script src="../../../http/tests/inspector/live-edit-test.js"></script> 7 <script src="../../../http/tests/inspector/live-edit-test.js"></script>
8 <script> 8 <script>
9 function addScript() 9 function addScript()
10 { 10 {
(...skipping 19 matching lines...) Expand all
30 InspectorTest.evaluateInPage("addScript()", didAddScript); 30 InspectorTest.evaluateInPage("addScript()", didAddScript);
31 } 31 }
32 32
33 function didAddScript() 33 function didAddScript()
34 { 34 {
35 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource ); 35 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource );
36 } 36 }
37 37
38 function didShowScriptSource(sourceFrame) 38 function didShowScriptSource(sourceFrame)
39 { 39 {
40 InspectorTest.addResult("Editing filesystem resource: " + source Frame.uiSourceCode().originURL()); 40 InspectorTest.addResult("Editing filesystem resource: " + source Frame.uiSourceCode().url());
41 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, " _didEditScriptSource", didEditScriptSource); 41 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, " _didEditScriptSource", didEditScriptSource);
42 InspectorTest.replaceInSource(sourceFrame, "return 0;", "return \"live-edited string\";"); 42 InspectorTest.replaceInSource(sourceFrame, "return 0;", "return \"live-edited string\";");
43 InspectorTest.commitSource(sourceFrame); 43 InspectorTest.commitSource(sourceFrame);
44 } 44 }
45 45
46 function didEditScriptSource() 46 function didEditScriptSource()
47 { 47 {
48 InspectorTest.evaluateInPage("f()", didEvaluateInPage); 48 InspectorTest.evaluateInPage("f()", didEvaluateInPage);
49 } 49 }
50 50
51 function didEvaluateInPage(result) 51 function didEvaluateInPage(result)
52 { 52 {
53 InspectorTest.addResult("Edited function returns: " + result.des cription); 53 InspectorTest.addResult("Edited function returns: " + result.des cription);
54 next(); 54 next();
55 } 55 }
56 } 56 }
57 ]); 57 ]);
58 }; 58 };
59 </script> 59 </script>
60 </head> 60 </head>
61 <body onload="runTest()"> 61 <body onload="runTest()">
62 <p>Tests file system project mappings in combination with live edit.</p> 62 <p>Tests file system project mappings in combination with live edit.</p>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698