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 e66426d63de264b11c32bb19fb0c61b4820f66ba..96a582af261888e6c936b1b087eedb61c1a569ca 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
@@ -423,6 +423,14 @@ InspectorTest.reloadPage = function(callback, scriptToEvaluateOnLoad, scriptPrep |
InspectorTest._innerReloadPage(false, callback, scriptToEvaluateOnLoad, scriptPreprocessor); |
} |
+InspectorTest.reloadPagePromise = function(scriptToEvaluateOnLoad, scriptPreprocessor) |
+{ |
+ var fulfill; |
+ var promise = new Promise(x => fulfill = x); |
+ InspectorTest.reloadPage(fulfill, scriptToEvaluateOnLoad, scriptPreprocessor); |
+ return promise; |
+} |
+ |
InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluateOnLoad, scriptPreprocessor) |
{ |
InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback); |