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

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: Merge branch 'master' into MOVE_NETWORK_STUFF_AROUND 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 var promise = new Promise(x => fulfill = x); 550 var promise = new Promise(x => fulfill = x);
551 InspectorTest.reloadPage(fulfill, scriptToEvaluateOnLoad); 551 InspectorTest.reloadPage(fulfill, scriptToEvaluateOnLoad);
552 return promise; 552 return promise;
553 } 553 }
554 554
555 InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluate OnLoad) 555 InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluate OnLoad)
556 { 556 {
557 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback); 557 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback);
558 558
559 if (UI.panels.network) 559 if (UI.panels.network)
560 UI.panels.network._networkLogView.reset(); 560 NetworkLog.networkLog.reset();
561 InspectorTest.resourceTreeModel.reloadPage(hardReload, scriptToEvaluateOnLoa d); 561 InspectorTest.resourceTreeModel.reloadPage(hardReload, scriptToEvaluateOnLoa d);
562 } 562 }
563 563
564 InspectorTest.pageLoaded = function() 564 InspectorTest.pageLoaded = function()
565 { 565 {
566 InspectorTest.addResult("Page reloaded."); 566 InspectorTest.addResult("Page reloaded.");
567 if (InspectorTest._pageLoadedCallback) { 567 if (InspectorTest._pageLoadedCallback) {
568 var callback = InspectorTest._pageLoadedCallback; 568 var callback = InspectorTest._pageLoadedCallback;
569 delete InspectorTest._pageLoadedCallback; 569 delete InspectorTest._pageLoadedCallback;
570 callback(); 570 callback();
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 _output("[page] " + text); 1291 _output("[page] " + text);
1292 } 1292 }
1293 1293
1294 function _output(result) 1294 function _output(result)
1295 { 1295 {
1296 if (!outputElement) 1296 if (!outputElement)
1297 createOutputElement(); 1297 createOutputElement();
1298 outputElement.appendChild(document.createTextNode(result)); 1298 outputElement.appendChild(document.createTextNode(result));
1299 outputElement.appendChild(document.createElement("br")); 1299 outputElement.appendChild(document.createElement("br"));
1300 } 1300 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698