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

Unified Diff: ios/web/test/data/mojo_test.js

Issue 2285043002: [ios] Use args destructuring in Mojo test promise. (Closed)
Patch Set: Self review Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/data/mojo_test.js
diff --git a/ios/web/test/data/mojo_test.js b/ios/web/test/data/mojo_test.js
index 27a3f355981d87dc4a3862573d269f76378a9f64..a41a743ea5c628bcfd8561f498552b2568239989 100644
--- a/ios/web/test/data/mojo_test.js
+++ b/ios/web/test/data/mojo_test.js
@@ -56,9 +56,8 @@ function whenDomContentLoaded() {
function main() {
Promise.all([
- whenDomContentLoaded(), getBrowserProxy()
- ]).then(function(results) {
- var browserProxy = results[1];
+ getBrowserProxy(), whenDomContentLoaded()
+ ]).then(function([browserProxy]) {
// Send "syn" so native code should reply with "ack".
browserProxy.handleJsMessage('syn');
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698