| 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 window._originalConsoleLog = console.log.bind(console); | 10 window._originalConsoleLog = console.log.bind(console); |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 } | 965 } |
| 966 var initialPanelShown = false; | 966 var initialPanelShown = false; |
| 967 for (var folder in initialPanelByFolder) { | 967 for (var folder in initialPanelByFolder) { |
| 968 if (testPath.indexOf(folder + "/") !== -1) { | 968 if (testPath.indexOf(folder + "/") !== -1) { |
| 969 lastLoadedPanel = initialPanelByFolder[folder]; | 969 lastLoadedPanel = initialPanelByFolder[folder]; |
| 970 promises.push(WebInspector.inspectorView.panel(lastLoadedPanel))
; | 970 promises.push(WebInspector.inspectorView.panel(lastLoadedPanel))
; |
| 971 break; | 971 break; |
| 972 } | 972 } |
| 973 } | 973 } |
| 974 | 974 |
| 975 if (testPath.startsWith("LayoutTests/inspector/elements/styles")) |
| 976 InspectorTest.startDumpingProtocolMessages(); |
| 977 |
| 975 // 3. Run test function. | 978 // 3. Run test function. |
| 976 Promise.all(promises).then(function() { | 979 Promise.all(promises).then(function() { |
| 977 if (lastLoadedPanel) | 980 if (lastLoadedPanel) |
| 978 WebInspector.inspectorView.showInitialPanelForTest(lastLoadedPan
el); | 981 WebInspector.inspectorView.showInitialPanelForTest(lastLoadedPan
el); |
| 979 testFunction(); | 982 testFunction(); |
| 980 }).catch(function(e) { | 983 }).catch(function(e) { |
| 981 console.error(e); | 984 console.error(e); |
| 982 InspectorTest.completeTest(); | 985 InspectorTest.completeTest(); |
| 983 }); | 986 }); |
| 984 } | 987 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 _output("[page] " + text); | 1061 _output("[page] " + text); |
| 1059 } | 1062 } |
| 1060 | 1063 |
| 1061 function _output(result) | 1064 function _output(result) |
| 1062 { | 1065 { |
| 1063 if (!outputElement) | 1066 if (!outputElement) |
| 1064 createOutputElement(); | 1067 createOutputElement(); |
| 1065 outputElement.appendChild(document.createTextNode(result)); | 1068 outputElement.appendChild(document.createTextNode(result)); |
| 1066 outputElement.appendChild(document.createElement("br")); | 1069 outputElement.appendChild(document.createElement("br")); |
| 1067 } | 1070 } |
| OLD | NEW |