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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/audits/audits-test.js

Issue 1886603002: DevTools: remove InspectorTests.runAfterPendingDispatches call from audits tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-dispatches
Patch Set: Created 4 years, 8 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 | « third_party/WebKit/LayoutTests/inspector/audits/audits-panel-noimages-functional.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 function initialize_AuditTests() 1 function initialize_AuditTests()
2 { 2 {
3 3
4 InspectorTest.preloadPanel("audits"); 4 InspectorTest.preloadPanel("audits");
5 5
6 InspectorTest.collectAuditResults = function(callback) 6 InspectorTest.collectAuditResults = function()
7 { 7 {
8 WebInspector.panels.audits.showResults(WebInspector.panels.audits.auditResul tsTreeElement.firstChild().results); 8 WebInspector.panels.audits.showResults(WebInspector.panels.audits.auditResul tsTreeElement.firstChild().results);
9 var trees = WebInspector.panels.audits.visibleView.element.querySelectorAll( ".audit-result-tree"); 9 var trees = WebInspector.panels.audits.visibleView.element.querySelectorAll( ".audit-result-tree");
10 for (var i = 0; i < trees.length; ++i) { 10 for (var i = 0; i < trees.length; ++i) {
11 var liElements = trees[i].shadowRoot.querySelectorAll("li"); 11 var liElements = trees[i].shadowRoot.querySelectorAll("li");
12 for (var j = 0; j < liElements.length; ++j) { 12 for (var j = 0; j < liElements.length; ++j) {
13 if (liElements[j].treeElement) 13 if (liElements[j].treeElement)
14 liElements[j].treeElement.expand(); 14 liElements[j].treeElement.expand();
15 } 15 }
16 } 16 }
17 InspectorTest.deprecatedRunAfterPendingDispatches(function() { 17
18 InspectorTest.collectTextContent(WebInspector.panels.audits.visibleView. element, ""); 18 InspectorTest.collectTextContent(WebInspector.panels.audits.visibleView.elem ent, "");
19 callback();
20 });
21 } 19 }
22 20
23 InspectorTest.launchAllAudits = function(shouldReload, callback) 21 InspectorTest.launchAllAudits = function(shouldReload, callback)
24 { 22 {
25 InspectorTest.addSniffer(WebInspector.AuditController.prototype, "_auditFini shedCallback", callback); 23 InspectorTest.addSniffer(WebInspector.AuditController.prototype, "_auditFini shedCallback", callback);
26 var launcherView = WebInspector.panels.audits._launcherView; 24 var launcherView = WebInspector.panels.audits._launcherView;
27 launcherView._selectAllClicked(true); 25 launcherView._selectAllClicked(true);
28 launcherView._auditPresentStateElement.checked = !shouldReload; 26 launcherView._auditPresentStateElement.checked = !shouldReload;
29 launcherView._launchButtonClicked(); 27 launcherView._launchButtonClicked();
30 } 28 }
(...skipping 20 matching lines...) Expand all
51 else 49 else
52 InspectorTest.collectTextContent(child, indent + " "); 50 InspectorTest.collectTextContent(child, indent + " ");
53 } 51 }
54 child = child.nextSibling; 52 child = child.nextSibling;
55 } 53 }
56 if (nodeOutput !== "") 54 if (nodeOutput !== "")
57 InspectorTest.addResult(indent + nodeOutput); 55 InspectorTest.addResult(indent + nodeOutput);
58 } 56 }
59 57
60 } 58 }
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/audits/audits-panel-noimages-functional.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698