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

Side by Side Diff: LayoutTests/http/tests/inspector/inspector-test.js

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 years, 1 month 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
« no previous file with comments | « LayoutTests/VirtualTestSuites ('k') | LayoutTests/http/tests/inspector/timeline-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var initialize_InspectorTest = function() { 1 var initialize_InspectorTest = function() {
2 2
3 var results = []; 3 var results = [];
4 4
5 function consoleOutputHook(messageType) 5 function consoleOutputHook(messageType)
6 { 6 {
7 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 7 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
8 } 8 }
9 9
10 console.log = consoleOutputHook.bind(InspectorTest, "log"); 10 console.log = consoleOutputHook.bind(InspectorTest, "log");
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 var lastLoadedPanel; 688 var lastLoadedPanel;
689 689
690 var promises = []; 690 var promises = [];
691 for (var i = 0; i < InspectorTest._panelsToPreload.length; ++i) { 691 for (var i = 0; i < InspectorTest._panelsToPreload.length; ++i) {
692 lastLoadedPanel = InspectorTest._panelsToPreload[i]; 692 lastLoadedPanel = InspectorTest._panelsToPreload[i];
693 promises.push(WebInspector.inspectorView.panel(lastLoadedPanel)); 693 promises.push(WebInspector.inspectorView.panel(lastLoadedPanel));
694 } 694 }
695 695
696 var testPath = WebInspector.settings.testPath.get(); 696 var testPath = WebInspector.settings.testPath.get();
697 697
698 // FIXME(399531): enable timelineOnTraceEvents experiment when running l ayout tests under inspector/tracing/. This code
699 // should be removed along with the old Timeline implementation once we move tracing based Timeline out of experimental.
700 if (testPath.indexOf("tracing/") !== -1)
701 Runtime.experiments.setEnabled("timelineOnTraceEvents", true);
702
703 if (testPath.indexOf("layers/") !== -1) 698 if (testPath.indexOf("layers/") !== -1)
704 Runtime.experiments.setEnabled("layersPanel", true); 699 Runtime.experiments.setEnabled("layersPanel", true);
705 700
706 // 2. Show initial panel based on test path. 701 // 2. Show initial panel based on test path.
707 var initialPanelByFolder = { 702 var initialPanelByFolder = {
708 "audits": "audits", 703 "audits": "audits",
709 "console": "console", 704 "console": "console",
710 "elements": "elements", 705 "elements": "elements",
711 "editor": "sources", 706 "editor": "sources",
712 "layers": "layers", 707 "layers": "layers",
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 _output("[page] " + text); 805 _output("[page] " + text);
811 } 806 }
812 807
813 function _output(result) 808 function _output(result)
814 { 809 {
815 if (!outputElement) 810 if (!outputElement)
816 createOutputElement(); 811 createOutputElement();
817 outputElement.appendChild(document.createTextNode(result)); 812 outputElement.appendChild(document.createTextNode(result));
818 outputElement.appendChild(document.createElement("br")); 813 outputElement.appendChild(document.createElement("br"));
819 } 814 }
OLDNEW
« no previous file with comments | « LayoutTests/VirtualTestSuites ('k') | LayoutTests/http/tests/inspector/timeline-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698