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

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

Issue 1809073003: [DevTools] Move callFunctionOn to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-evaluate-v2
Patch Set: Created 4 years, 9 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 currentNode = currentNode.traverseNextNode(node); 731 currentNode = currentNode.traverseNextNode(node);
732 } 732 }
733 return buffer; 733 return buffer;
734 } 734 }
735 735
736 InspectorTest.clearSpecificInfoFromStackFrames = function(text) 736 InspectorTest.clearSpecificInfoFromStackFrames = function(text)
737 { 737 {
738 var buffer = text.replace(/\(file:\/\/\/(?:[^)]+\)|[\w\/:-]+)/g, "(...)"); 738 var buffer = text.replace(/\(file:\/\/\/(?:[^)]+\)|[\w\/:-]+)/g, "(...)");
739 buffer = buffer.replace(/\(<anonymous>:[^)]+\)/g, "(...)"); 739 buffer = buffer.replace(/\(<anonymous>:[^)]+\)/g, "(...)");
740 buffer = buffer.replace(/VM\d+/g, "VM"); 740 buffer = buffer.replace(/VM\d+/g, "VM");
741 buffer = buffer.replace(/\s*at[^()]+\(native\)/g, ""); 741 return buffer.replace(/\s*at[^()]+\(native\)/g, "");
742 return buffer.replace(/\s*at Object.InjectedScript.[^)]+\)/g, "");
743 } 742 }
744 743
745 InspectorTest.hideInspectorView = function() 744 InspectorTest.hideInspectorView = function()
746 { 745 {
747 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo rtant"); 746 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo rtant");
748 } 747 }
749 748
750 InspectorTest.mainFrame = function() 749 InspectorTest.mainFrame = function()
751 { 750 {
752 return InspectorTest.mainTarget.resourceTreeModel.mainFrame; 751 return InspectorTest.mainTarget.resourceTreeModel.mainFrame;
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 _output("[page] " + text); 1205 _output("[page] " + text);
1207 } 1206 }
1208 1207
1209 function _output(result) 1208 function _output(result)
1210 { 1209 {
1211 if (!outputElement) 1210 if (!outputElement)
1212 createOutputElement(); 1211 createOutputElement();
1213 outputElement.appendChild(document.createTextNode(result)); 1212 outputElement.appendChild(document.createTextNode(result));
1214 outputElement.appendChild(document.createElement("br")); 1213 outputElement.appendChild(document.createElement("br"));
1215 } 1214 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698