| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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(); |
| OLD | NEW |