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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/sources/navigator-view-content-scripts.html

Issue 2696143005: DevTools: fix NavigatorView exception (Closed)
Patch Set: move test to http Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/sources/navigator-view-content-scripts-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../inspector-test.js"></script>
4
5 <script>
6 function test()
7 {
8 function addUISourceCode(url, isContentScript)
9 {
10 var contentProvider = Common.StaticContentProvider.fromString(url, Commo n.resourceTypes.Script, "");
11 var networkProject = Bindings.NetworkProject.forTarget(InspectorTest.mai nTarget);
12 var uiSourceCode = networkProject.addFile(contentProvider, InspectorTest .mainFrame(), isContentScript);
13 return uiSourceCode;
14 }
15
16 var rootURL = "http://localhost:8080/LayoutTests/inspector/debugger/";
17 var sourcesNavigatorView = new Sources.SourcesNavigatorView();
18 sourcesNavigatorView.show(UI.inspectorView.element);
19
20 InspectorTest.addResult("\n\n=============================================== =");
21 InspectorTest.addResult("Adding urls");
22 addUISourceCode(rootURL + "foo/bar/script.js", false);
23 var contentUISourceCode = addUISourceCode(rootURL + "foo/bar/contentScript2. js?a=1", true);
24 InspectorTest.dumpNavigatorView(sourcesNavigatorView);
25
26 InspectorTest.addResult("\n\n=============================================== =");
27 InspectorTest.addResult("Removing contentScripts project");
28 contentUISourceCode.project().removeProject();
29 InspectorTest.dumpNavigatorView(sourcesNavigatorView);
30 InspectorTest.completeTest();
31 }
32 </script>
33
34 </head>
35 <body onload="runTest()">
36 <p>Verify that removal of one of the multiple projects, all of which are associa ted with the same
37 frame, doesn't lead navigator to discard the frame treenode.</p>
38 </p>
39 </body>
40
41 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/sources/navigator-view-content-scripts-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698