UNPKG

@dcloudio/uni-debugger

Version:

uni-app debugger

31 lines (24 loc) 1.13 kB
// Copyright 2017 The Chromium Authors. All // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview using private properties isn't a Closure violation in tests. * @suppress {accessControls} */ SecurityTestRunner.dumpSecurityPanelSidebarOrigins = function() { for (const key in Security.SecurityPanelSidebarTree.OriginGroupName) { const originGroupName = Security.SecurityPanelSidebarTree.OriginGroupName[key]; const originGroup = Security.SecurityPanel._instance()._sidebarTree._originGroups.get(originGroupName); if (originGroup.hidden) continue; TestRunner.addResult('Group: ' + originGroupName); const originTitles = originGroup.childrenListElement.getElementsByTagName('span'); for (const originTitle of originTitles) { if (originTitle.className !== 'tree-element-title') TestRunner.dumpDeepInnerHTML(originTitle); } } }; SecurityTestRunner.dispatchRequestFinished = function(request) { TestRunner.networkManager.dispatchEventToListeners(SDK.NetworkManager.Events.RequestFinished, request); };