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

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

Issue 2914033002: [Devtools] NetworkLogView now uses NetworkLog as source of truth. (Closed)
Patch Set: changes Created 3 years, 6 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 3
4 var initialize_InspectorTest = function() { 4 var initialize_InspectorTest = function() {
5 Protocol.InspectorBackend.Options.suppressRequestErrors = true; 5 Protocol.InspectorBackend.Options.suppressRequestErrors = true;
6 var results = []; 6 var results = [];
7 7
8 function consoleOutputHook(messageType) 8 function consoleOutputHook(messageType)
9 { 9 {
10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 var promise = new Promise(x => fulfill = x); 561 var promise = new Promise(x => fulfill = x);
562 InspectorTest.reloadPage(fulfill, scriptToEvaluateOnLoad); 562 InspectorTest.reloadPage(fulfill, scriptToEvaluateOnLoad);
563 return promise; 563 return promise;
564 } 564 }
565 565
566 InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluate OnLoad) 566 InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluate OnLoad)
567 { 567 {
568 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback); 568 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback);
569 569
570 if (UI.panels.network) 570 if (UI.panels.network)
571 UI.panels.network._networkLogView.reset(); 571 NetworkLog.networkLog.reset();
572 InspectorTest.resourceTreeModel.reloadPage(hardReload, scriptToEvaluateOnLoa d); 572 InspectorTest.resourceTreeModel.reloadPage(hardReload, scriptToEvaluateOnLoa d);
573 } 573 }
574 574
575 InspectorTest.pageLoaded = function() 575 InspectorTest.pageLoaded = function()
576 { 576 {
577 InspectorTest.addResult("Page reloaded."); 577 InspectorTest.addResult("Page reloaded.");
578 if (InspectorTest._pageLoadedCallback) { 578 if (InspectorTest._pageLoadedCallback) {
579 var callback = InspectorTest._pageLoadedCallback; 579 var callback = InspectorTest._pageLoadedCallback;
580 delete InspectorTest._pageLoadedCallback; 580 delete InspectorTest._pageLoadedCallback;
581 callback(); 581 callback();
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 _output("[page] " + text); 1304 _output("[page] " + text);
1305 } 1305 }
1306 1306
1307 function _output(result) 1307 function _output(result)
1308 { 1308 {
1309 if (!outputElement) 1309 if (!outputElement)
1310 createOutputElement(); 1310 createOutputElement();
1311 outputElement.appendChild(document.createTextNode(result)); 1311 outputElement.appendChild(document.createTextNode(result));
1312 outputElement.appendChild(document.createElement("br")); 1312 outputElement.appendChild(document.createElement("br"));
1313 } 1313 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698