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

Side by Side Diff: LayoutTests/inspector/extensions/extensions-audits-tests.js

Issue 667623002: DevTools: make extension server a part of core, panels' code should depend on it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: for review Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
1 function extension_runAudits(callback) 1 function extension_runAudits(callback)
2 { 2 {
3 evaluateOnFrontend("InspectorTest.startExtensionAudits(reply);", callback); 3 evaluateOnFrontend("InspectorTest.startExtensionAudits(reply);", callback);
4 } 4 }
5 5
6 // runs in front-end 6 // runs in front-end
7 var initialize_ExtensionsAuditsTest = function() 7 var initialize_ExtensionsAuditsTest = function()
8 { 8 {
9 InspectorTest.startExtensionAudits = function(callback) 9 InspectorTest.startExtensionAudits = function(callback)
10 { 10 {
(...skipping 18 matching lines...) Expand all
29 29
30 launcherView._launchButtonClicked(); 30 launcherView._launchButtonClicked();
31 } 31 }
32 32
33 InspectorTest.dumpAuditProgress = function() 33 InspectorTest.dumpAuditProgress = function()
34 { 34 {
35 var progress = document.querySelector(".panel.audits progress"); 35 var progress = document.querySelector(".panel.audits progress");
36 InspectorTest.addResult("Progress: " + Math.round(100 * progress.value / progress.max) + "%"); 36 InspectorTest.addResult("Progress: " + Math.round(100 * progress.value / progress.max) + "%");
37 } 37 }
38 38
39 // We will render DOM node results, so preload elements.
40 InspectorTest.preloadPanel("elements");
39 InspectorTest.preloadPanel("audits"); 41 InspectorTest.preloadPanel("audits");
40 } 42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698