self.ApplicationTestRunner=self.ApplicationTestRunner||{},ApplicationTestRunner.dumpResources=function(e){const r=[];TestRunner.resourceTreeModel.forAllResources((function(n){e?r.push({resource:n,text:e(n)}):r.push({resource:n,text:n.url})})),r.sort((function(e,r){return e.resource.url.localeCompare(r.resource.url)}));for(let n=0;n<r.length;++n)TestRunner.addResult(r[n].text)},ApplicationTestRunner.dumpResourcesURLMap=function(){const e=[];TestRunner.resourceTreeModel.forAllResources((function(r){e.push({url:r.url,resource:TestRunner.resourceTreeModel.resourceForURL(r.url)})})),e.sort((function(e,r){return e.url>r.url?1:r.url>e.url?-1:0}));for(let r=0;r<e.length;++r)TestRunner.addResult(e[r].url+" == "+e[r].resource.url)},ApplicationTestRunner.dumpResourcesTree=function(){!function e(r,n){"function"===typeof r._resetBubble&&r._resetBubble(),TestRunner.addResult(n+r.listItemElement.textContent),r.expand();const t=r.children();for(let u=0;t&&u<t.length;++u)e(t[u],n+"    ")}(UI.panels.resources._sidebar._resourcesSection._treeElement,""),ApplicationTestRunner._testSourceNavigator||(ApplicationTestRunner._testSourceNavigator=new Sources.NetworkNavigatorView,ApplicationTestRunner._testSourceNavigator.show(self.UI.inspectorView.element)),SourcesTestRunner.dumpNavigatorViewInAllModes(ApplicationTestRunner._testSourceNavigator)},ApplicationTestRunner.dumpResourceTreeEverything=function(){TestRunner.addResult("Resources:"),ApplicationTestRunner.dumpResources((function(e){return e.resourceType().name()+" "+e.url})),TestRunner.addResult(""),TestRunner.addResult("Resources URL Map:"),ApplicationTestRunner.dumpResourcesURLMap(),TestRunner.addResult(""),TestRunner.addResult("Resources Tree:"),ApplicationTestRunner.dumpResourcesTree()};