| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |