OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |