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); |