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

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

Issue 1185453005: Dump inspector protocol traffic for tests starting with inspector/elements/styles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « LayoutTests/http/tests/inspector/debugger-test.js ('k') | no next file » | 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 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
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
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 }
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/debugger-test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698