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

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

Issue 2736763002: [DevTools] Save connected worker ids to send "detached" notification on restore. (Closed)
Patch Set: test result Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/resources/worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0e78e0f9c33b448c596490e2e8ae91ac0ddceb3c..667cb709c73cf13691336d20e155cc9c731e2d5a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
@@ -469,6 +469,14 @@ InspectorTest.navigate = function(url, callback)
InspectorTest.evaluateInPage("window.location.replace('" + url + "')");
}
+InspectorTest.navigatePromise = function(url)
+{
+ var fulfill;
+ var promise = new Promise(callback => fulfill = callback);
+ InspectorTest.navigate(url, fulfill);
+ return promise;
+}
+
InspectorTest.hardReloadPage = function(callback, scriptToEvaluateOnLoad, scriptPreprocessor)
{
InspectorTest._innerReloadPage(true, callback, scriptToEvaluateOnLoad, scriptPreprocessor);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/resources/worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698