| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 } | 533 } |
| 534 | 534 |
| 535 InspectorTest.navigatePromise = function(url) | 535 InspectorTest.navigatePromise = function(url) |
| 536 { | 536 { |
| 537 var fulfill; | 537 var fulfill; |
| 538 var promise = new Promise(callback => fulfill = callback); | 538 var promise = new Promise(callback => fulfill = callback); |
| 539 InspectorTest.navigate(url, fulfill); | 539 InspectorTest.navigate(url, fulfill); |
| 540 return promise; | 540 return promise; |
| 541 } | 541 } |
| 542 | 542 |
| 543 InspectorTest.hardReloadPage = function(callback, scriptToEvaluateOnLoad, script
Preprocessor) | 543 InspectorTest.hardReloadPage = function(callback, scriptToEvaluateOnLoad) |
| 544 { | 544 { |
| 545 InspectorTest._innerReloadPage(true, callback, scriptToEvaluateOnLoad, scrip
tPreprocessor); | 545 InspectorTest._innerReloadPage(true, callback, scriptToEvaluateOnLoad); |
| 546 } | 546 } |
| 547 | 547 |
| 548 InspectorTest.reloadPage = function(callback, scriptToEvaluateOnLoad, scriptPrep
rocessor) | 548 InspectorTest.reloadPage = function(callback, scriptToEvaluateOnLoad) |
| 549 { | 549 { |
| 550 InspectorTest._innerReloadPage(false, callback, scriptToEvaluateOnLoad, scri
ptPreprocessor); | 550 InspectorTest._innerReloadPage(false, callback, scriptToEvaluateOnLoad); |
| 551 } | 551 } |
| 552 | 552 |
| 553 InspectorTest.reloadPagePromise = function(scriptToEvaluateOnLoad, scriptPreproc
essor) | 553 InspectorTest.reloadPagePromise = function(scriptToEvaluateOnLoad) |
| 554 { | 554 { |
| 555 var fulfill; | 555 var fulfill; |
| 556 var promise = new Promise(x => fulfill = x); | 556 var promise = new Promise(x => fulfill = x); |
| 557 InspectorTest.reloadPage(fulfill, scriptToEvaluateOnLoad, scriptPreprocessor
); | 557 InspectorTest.reloadPage(fulfill, scriptToEvaluateOnLoad); |
| 558 return promise; | 558 return promise; |
| 559 } | 559 } |
| 560 | 560 |
| 561 InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluate
OnLoad, scriptPreprocessor) | 561 InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluate
OnLoad) |
| 562 { | 562 { |
| 563 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback); | 563 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback); |
| 564 | 564 |
| 565 if (UI.panels.network) | 565 if (UI.panels.network) |
| 566 UI.panels.network._networkLogView.reset(); | 566 UI.panels.network._networkLogView.reset(); |
| 567 InspectorTest.PageAgent.reload(hardReload, scriptToEvaluateOnLoad, scriptPre
processor); | 567 InspectorTest.resourceTreeModel.reloadPage(hardReload, scriptToEvaluateOnLoa
d); |
| 568 } | 568 } |
| 569 | 569 |
| 570 InspectorTest.pageLoaded = function() | 570 InspectorTest.pageLoaded = function() |
| 571 { | 571 { |
| 572 InspectorTest.addResult("Page reloaded."); | 572 InspectorTest.addResult("Page reloaded."); |
| 573 if (InspectorTest._pageLoadedCallback) { | 573 if (InspectorTest._pageLoadedCallback) { |
| 574 var callback = InspectorTest._pageLoadedCallback; | 574 var callback = InspectorTest._pageLoadedCallback; |
| 575 delete InspectorTest._pageLoadedCallback; | 575 delete InspectorTest._pageLoadedCallback; |
| 576 callback(); | 576 callback(); |
| 577 } | 577 } |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 _output("[page] " + text); | 1299 _output("[page] " + text); |
| 1300 } | 1300 } |
| 1301 | 1301 |
| 1302 function _output(result) | 1302 function _output(result) |
| 1303 { | 1303 { |
| 1304 if (!outputElement) | 1304 if (!outputElement) |
| 1305 createOutputElement(); | 1305 createOutputElement(); |
| 1306 outputElement.appendChild(document.createTextNode(result)); | 1306 outputElement.appendChild(document.createTextNode(result)); |
| 1307 outputElement.appendChild(document.createElement("br")); | 1307 outputElement.appendChild(document.createElement("br")); |
| 1308 } | 1308 } |
| OLD | NEW |