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

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

Issue 135973010: Revert of DevTools: Fix console.log for arrays in some corner cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 10 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 | « no previous file | LayoutTests/inspector/console/console-format.html » ('j') | 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 var resultsSynchronized = false; 4 var resultsSynchronized = false;
5 5
6 function consoleOutputHook(messageType) 6 function consoleOutputHook(messageType)
7 { 7 {
8 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 8 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
9 } 9 }
10 10
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 { 403 {
404 var buffer = ""; 404 var buffer = "";
405 var currentNode = node; 405 var currentNode = node;
406 while (currentNode = currentNode.traverseNextNode(node)) { 406 while (currentNode = currentNode.traverseNextNode(node)) {
407 if (currentNode.nodeType === Node.TEXT_NODE) 407 if (currentNode.nodeType === Node.TEXT_NODE)
408 buffer += currentNode.nodeValue; 408 buffer += currentNode.nodeValue;
409 else if (currentNode.nodeName === "LI") 409 else if (currentNode.nodeName === "LI")
410 buffer += "\n "; 410 buffer += "\n ";
411 else if (currentNode.classList.contains("console-message")) 411 else if (currentNode.classList.contains("console-message"))
412 buffer += "\n\n"; 412 buffer += "\n\n";
413 else if (currentNode.classList.contains("console-user-command"))
414 buffer += "\n\n> ";
415 } 413 }
416 return buffer; 414 return buffer;
417 } 415 }
418 416
419 InspectorTest.hideInspectorView = function() 417 InspectorTest.hideInspectorView = function()
420 { 418 {
421 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo rtant"); 419 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo rtant");
422 } 420 }
423 421
424 InspectorTest.StringOutputStream = function(callback) 422 InspectorTest.StringOutputStream = function(callback)
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 evaluateInWebInspector: function(callId, script) 723 evaluateInWebInspector: function(callId, script)
726 { 724 {
727 window.opener.postMessage(["evaluateInWebInspector", callId, script], "* "); 725 window.opener.postMessage(["evaluateInWebInspector", callId, script], "* ");
728 }, 726 },
729 727
730 display: function() { } 728 display: function() { }
731 } 729 }
732 730
733 if (!window.testRunner && window.opener) 731 if (!window.testRunner && window.opener)
734 window.testRunner = new StandaloneTestRunnerStub(); 732 window.testRunner = new StandaloneTestRunnerStub();
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-format.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698