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

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

Issue 2873843003: [DevTools] Restore tree selection after reload (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
index 3f06fbf7460a19b31805a6c78a95db6c45c34ba9..74e291788e507ca7bda20f30c0238c01cf319fca 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
@@ -540,31 +540,31 @@ InspectorTest.navigatePromise = function(url)
return promise;
}
-InspectorTest.hardReloadPage = function(callback, scriptToEvaluateOnLoad, scriptPreprocessor)
+InspectorTest.hardReloadPage = function(callback, scriptToEvaluateOnLoad)
{
- InspectorTest._innerReloadPage(true, callback, scriptToEvaluateOnLoad, scriptPreprocessor);
+ InspectorTest._innerReloadPage(true, callback, scriptToEvaluateOnLoad);
}
-InspectorTest.reloadPage = function(callback, scriptToEvaluateOnLoad, scriptPreprocessor)
+InspectorTest.reloadPage = function(callback, scriptToEvaluateOnLoad)
{
- InspectorTest._innerReloadPage(false, callback, scriptToEvaluateOnLoad, scriptPreprocessor);
+ InspectorTest._innerReloadPage(false, callback, scriptToEvaluateOnLoad);
}
-InspectorTest.reloadPagePromise = function(scriptToEvaluateOnLoad, scriptPreprocessor)
+InspectorTest.reloadPagePromise = function(scriptToEvaluateOnLoad)
{
var fulfill;
var promise = new Promise(x => fulfill = x);
- InspectorTest.reloadPage(fulfill, scriptToEvaluateOnLoad, scriptPreprocessor);
+ InspectorTest.reloadPage(fulfill, scriptToEvaluateOnLoad);
return promise;
}
-InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluateOnLoad, scriptPreprocessor)
+InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluateOnLoad)
{
InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback);
if (UI.panels.network)
UI.panels.network._networkLogView.reset();
- InspectorTest.PageAgent.reload(hardReload, scriptToEvaluateOnLoad, scriptPreprocessor);
+ InspectorTest.resourceTreeModel.reloadPage(hardReload, scriptToEvaluateOnLoad);
}
InspectorTest.pageLoaded = function()

Powered by Google App Engine
This is Rietveld 408576698