| 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> "; |
| 413 } | 415 } |
| 414 return buffer; | 416 return buffer; |
| 415 } | 417 } |
| 416 | 418 |
| 417 InspectorTest.hideInspectorView = function() | 419 InspectorTest.hideInspectorView = function() |
| 418 { | 420 { |
| 419 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo
rtant"); | 421 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo
rtant"); |
| 420 } | 422 } |
| 421 | 423 |
| 422 InspectorTest.StringOutputStream = function(callback) | 424 InspectorTest.StringOutputStream = function(callback) |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 evaluateInWebInspector: function(callId, script) | 721 evaluateInWebInspector: function(callId, script) |
| 720 { | 722 { |
| 721 window.opener.postMessage(["evaluateInWebInspector", callId, script], "*
"); | 723 window.opener.postMessage(["evaluateInWebInspector", callId, script], "*
"); |
| 722 }, | 724 }, |
| 723 | 725 |
| 724 display: function() { } | 726 display: function() { } |
| 725 } | 727 } |
| 726 | 728 |
| 727 if (!window.testRunner && window.opener) | 729 if (!window.testRunner && window.opener) |
| 728 window.testRunner = new StandaloneTestRunnerStub(); | 730 window.testRunner = new StandaloneTestRunnerStub(); |
| OLD | NEW |