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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html

Issue 2848353003: [Devtools] Fixed resource having no content if from xhr blob (Closed)
Patch Set: [Devtools] Fixed resource having no content if from xhr blob Created 3 years, 8 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-protocol/resources/protocol-test.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
index bc93957aee3d03044e32a749c5a5baac195fdc41..510b44164d4735fe48751d0dd7451dc8e314c44a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html
@@ -298,6 +298,16 @@ InspectorTest.evaluateInPage = function(string, callback)
});
};
+/**
+ * Evaluates expression in page.
+ * @param {string} expression
+ * @return {!Promise<?>}
+ */
+InspectorTest.evaluateInPagePromise = function(expression)
+{
+ return InspectorTest.sendCommandPromise("Runtime.evaluate", { "expression": expression, awaitPromise: false, returnByValue: true });
+};
+
InspectorTest.evaluateInPageAsync = function(expression)
{
return InspectorTest.sendCommandPromise("Runtime.evaluate", { "expression": expression, awaitPromise: true, returnByValue: true }).then((message) => message.result.result.value);

Powered by Google App Engine
This is Rietveld 408576698