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

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

Issue 2916283002: Revert of DevTools: require enabling CSS domain before running CSS.* commands. (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-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 1f3ce3cf19a26447d56d654cdd5f15ad1b05188e..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
@@ -62,9 +62,6 @@
InspectorTest.sendCommandOrDie = function(command, properties, callback)
{
- var fulfill;
- var result = new Promise(f => fulfill = f);
-
InspectorTest.sendCommand(command, properties || {}, commandCallback);
function commandCallback(msg)
{
@@ -75,9 +72,7 @@
}
if (callback)
callback(msg.result);
- fulfill(msg.result);
- }
- return result;
+ }
}
InspectorTest.sendCommandPromise = function(method, params)

Powered by Google App Engine
This is Rietveld 408576698