| OLD | NEW |
| 1 if (window.GCController) | 1 if (window.GCController) |
| 2 GCController.collectAll(); | 2 GCController.collectAll(); |
| 3 var initialize_InspectorTest = function() { | 3 var initialize_InspectorTest = function() { |
| 4 | 4 |
| 5 var results = []; | 5 var results = []; |
| 6 | 6 |
| 7 function consoleOutputHook(messageType) | 7 function consoleOutputHook(messageType) |
| 8 { | 8 { |
| 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
| 10 } | 10 } |
| (...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 var initialPanelShown = false; | 1072 var initialPanelShown = false; |
| 1073 for (var folder in initialPanelByFolder) { | 1073 for (var folder in initialPanelByFolder) { |
| 1074 if (testPath.indexOf(folder + "/") !== -1) { | 1074 if (testPath.indexOf(folder + "/") !== -1) { |
| 1075 lastLoadedPanel = initialPanelByFolder[folder]; | 1075 lastLoadedPanel = initialPanelByFolder[folder]; |
| 1076 promises.push(WebInspector.inspectorView.panel(lastLoadedPanel))
; | 1076 promises.push(WebInspector.inspectorView.panel(lastLoadedPanel))
; |
| 1077 break; | 1077 break; |
| 1078 } | 1078 } |
| 1079 } | 1079 } |
| 1080 | 1080 |
| 1081 // 3. Run test function. | 1081 // 3. Run test function. |
| 1082 Promise.all(promises).then(function() { | 1082 Promise.all(promises).then(() => { |
| 1083 if (lastLoadedPanel) | 1083 if (lastLoadedPanel) |
| 1084 WebInspector.inspectorView.showInitialPanelForTest(lastLoadedPan
el); | 1084 WebInspector.inspectorView.showPanel(lastLoadedPanel).then(testF
unction); |
| 1085 testFunction(); | 1085 else |
| 1086 testFunction(); |
| 1086 }).catch(function(e) { | 1087 }).catch(function(e) { |
| 1087 console.error(e); | 1088 console.error(e); |
| 1088 InspectorTest.completeTest(); | 1089 InspectorTest.completeTest(); |
| 1089 }); | 1090 }); |
| 1090 } | 1091 } |
| 1091 | 1092 |
| 1092 var initializationFunctions = [ String(initialize_InspectorTest) ]; | 1093 var initializationFunctions = [ String(initialize_InspectorTest) ]; |
| 1093 for (var name in window) { | 1094 for (var name in window) { |
| 1094 if (name.indexOf("initialize_") === 0 && typeof window[name] === "functi
on" && name !== "initialize_InspectorTest") | 1095 if (name.indexOf("initialize_") === 0 && typeof window[name] === "functi
on" && name !== "initialize_InspectorTest") |
| 1095 initializationFunctions.push(window[name].toString()); | 1096 initializationFunctions.push(window[name].toString()); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 _output("[page] " + text); | 1165 _output("[page] " + text); |
| 1165 } | 1166 } |
| 1166 | 1167 |
| 1167 function _output(result) | 1168 function _output(result) |
| 1168 { | 1169 { |
| 1169 if (!outputElement) | 1170 if (!outputElement) |
| 1170 createOutputElement(); | 1171 createOutputElement(); |
| 1171 outputElement.appendChild(document.createTextNode(result)); | 1172 outputElement.appendChild(document.createTextNode(result)); |
| 1172 outputElement.appendChild(document.createElement("br")); | 1173 outputElement.appendChild(document.createElement("br")); |
| 1173 } | 1174 } |
| OLD | NEW |