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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-panel.html

Issue 1523193002: DevTools: merge UISourceCode's parentPath, name, originURL and uri. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 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/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> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 function dumpNavigator(sourcesNavigatorView) 9 function dumpNavigator(sourcesNavigatorView)
10 { 10 {
(...skipping 15 matching lines...) Expand all
26 { 26 {
27 InspectorTest.addResult("Source requested for " + url); 27 InspectorTest.addResult("Source requested for " + url);
28 callback(""); 28 callback("");
29 }; 29 };
30 return contentProvider; 30 return contentProvider;
31 } 31 }
32 32
33 function createMockWorkspace() 33 function createMockWorkspace()
34 { 34 {
35 InspectorTest.createWorkspaceWithTarget(true); 35 InspectorTest.createWorkspaceWithTarget(true);
36 InspectorTest.testDebuggerProject = new WebInspector.ContentProviderBase dProject(InspectorTest.testWorkspace, "", WebInspector.projectTypes.Debugger, "d ebugger:", ""); 36 InspectorTest.testDebuggerProject = new WebInspector.ContentProviderBase dProject(InspectorTest.testWorkspace, "", WebInspector.projectTypes.Debugger, "" );
37 return InspectorTest.testWorkspace; 37 return InspectorTest.testWorkspace;
38 } 38 }
39 39
40 function addNetworkFile(workspace, url) 40 function addNetworkFile(workspace, url)
41 { 41 {
42 return InspectorTest.testNetworkProject.addFileForURL(url, createContent Provider(url)); 42 return InspectorTest.testNetworkProject.addFileForURL(url, createContent Provider(url));
43 } 43 }
44 44
45 function addDebuggerFile(workspace, url) 45 function addDebuggerFile(workspace, url)
46 { 46 {
47 var uiSourceCode = InspectorTest.testDebuggerProject.createUISourceCode( "", url, url, WebInspector.resourceTypes.Script); 47 var uiSourceCode = InspectorTest.testDebuggerProject.createUISourceCode( url, WebInspector.resourceTypes.Script);
48 InspectorTest.testDebuggerProject.addUISourceCodeWithProvider(uiSourceCo de, createContentProvider(url)); 48 InspectorTest.testDebuggerProject.addUISourceCodeWithProvider(uiSourceCo de, createContentProvider(url));
49 return InspectorTest.testWorkspace.uiSourceCode("debugger:", uiSourceCod e.path()); 49 return InspectorTest.testWorkspace.uiSourceCode("debugger:", uiSourceCod e.path());
50 } 50 }
51 51
52 InspectorTest.runTestSuite([ 52 InspectorTest.runTestSuite([
53 function testInitialLoad(next) 53 function testInitialLoad(next)
54 { 54 {
55 var workspace = createMockWorkspace(); 55 var workspace = createMockWorkspace();
56 56
57 addNetworkFile(workspace, "foobar.js"); 57 addNetworkFile(workspace, "foobar.js");
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 next(); 108 next();
109 } 109 }
110 ]); 110 ]);
111 }; 111 };
112 </script> 112 </script>
113 </head> 113 </head>
114 <body onload="runTest()"> 114 <body onload="runTest()">
115 <p>Tests that scripts panel UI elements work as intended.</p> 115 <p>Tests that scripts panel UI elements work as intended.</p>
116 </body> 116 </body>
117 </html> 117 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698