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

Unified Diff: third_party/WebKit/LayoutTests/inspector/runtime/runtime-getProperties.html

Issue 2899163002: DevTools: Promisify Runtime domain (Closed)
Patch Set: addressing comments 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/inspector/runtime/runtime-getProperties.html
diff --git a/third_party/WebKit/LayoutTests/inspector/runtime/runtime-getProperties.html b/third_party/WebKit/LayoutTests/inspector/runtime/runtime-getProperties.html
index 52b6edc6e70588f79cba95b0d40252b3f979962a..25e25b20d11adf1b54efcdbbe3054786f9fd3d75 100644
--- a/third_party/WebKit/LayoutTests/inspector/runtime/runtime-getProperties.html
+++ b/third_party/WebKit/LayoutTests/inspector/runtime/runtime-getProperties.html
@@ -18,26 +18,17 @@ function test()
}
InspectorTest.runTestSuite([
- function testSetUp(next)
+ async function testSetUp(next)
{
- InspectorTest.evaluateInPage("dumpObjects('Initial')", step0);
+ await new Promise(resolve => InspectorTest.evaluateInPage("dumpObjects('Initial')", resolve));
- function step0()
- {
- InspectorTest.RuntimeAgent.evaluate("object1", step1);
- }
+ var result = await InspectorTest.RuntimeAgent.evaluate("object1");
- function step1(error, result, exceptionDetails)
- {
- obj1 = InspectorTest.runtimeModel.createRemoteObject(result);
- InspectorTest.RuntimeAgent.evaluate("object2", step2);
- }
+ obj1 = InspectorTest.runtimeModel.createRemoteObject(result);
+ var result = await InspectorTest.RuntimeAgent.evaluate("object2");
- function step2(error, result, exceptionDetails)
- {
- obj2 = InspectorTest.runtimeModel.createRemoteObject(result);
- next();
- }
+ obj2 = InspectorTest.runtimeModel.createRemoteObject(result);
+ next();
},
function testGetterAndSetter(next)

Powered by Google App Engine
This is Rietveld 408576698