| OLD | NEW |
| (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> |
| OLD | NEW |