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

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

Issue 2349973005: DevTools: move repeatCountElement from contentElement into wrapperElement (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 if (currentNode.nodeType === Node.TEXT_NODE) { 634 if (currentNode.nodeType === Node.TEXT_NODE) {
635 buffer += currentNode.nodeValue; 635 buffer += currentNode.nodeValue;
636 } else if (currentNode.nodeName === "LI" || currentNode.nodeName === "TR ") { 636 } else if (currentNode.nodeName === "LI" || currentNode.nodeName === "TR ") {
637 if (!ignoreFirst) 637 if (!ignoreFirst)
638 buffer += "\n" + padding(currentNode); 638 buffer += "\n" + padding(currentNode);
639 else 639 else
640 ignoreFirst = false; 640 ignoreFirst = false;
641 } else if (currentNode.nodeName === "STYLE") { 641 } else if (currentNode.nodeName === "STYLE") {
642 currentNode = currentNode.traverseNextNode(node); 642 currentNode = currentNode.traverseNextNode(node);
643 continue; 643 continue;
644 } else if (currentNode.classList && currentNode.classList.contains("cons ole-message")) {
645 buffer += "\n\n";
646 } else if (currentNode.classList && currentNode.classList.contains("obje ct-properties-section")) { 644 } else if (currentNode.classList && currentNode.classList.contains("obje ct-properties-section")) {
647 ignoreFirst = true; 645 ignoreFirst = true;
648 } 646 }
649 } 647 }
650 return buffer; 648 return buffer;
651 } 649 }
652 650
653 InspectorTest.textContentWithoutStyles = function(node) 651 InspectorTest.textContentWithoutStyles = function(node)
654 { 652 {
655 var buffer = ""; 653 var buffer = "";
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 _output("[page] " + text); 1143 _output("[page] " + text);
1146 } 1144 }
1147 1145
1148 function _output(result) 1146 function _output(result)
1149 { 1147 {
1150 if (!outputElement) 1148 if (!outputElement)
1151 createOutputElement(); 1149 createOutputElement();
1152 outputElement.appendChild(document.createTextNode(result)); 1150 outputElement.appendChild(document.createTextNode(result));
1153 outputElement.appendChild(document.createElement("br")); 1151 outputElement.appendChild(document.createElement("br"));
1154 } 1152 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698