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

Unified Diff: services/dart/dart_apptests/pingpong_apptests.dart

Issue 987523002: Dart: Fixes bug in MojoEventStreamListener (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « services/dart/dart_apptests/echo_apptests.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/dart/dart_apptests/pingpong_apptests.dart
diff --git a/services/dart/dart_apptests/pingpong_apptests.dart b/services/dart/dart_apptests/pingpong_apptests.dart
index 4fd3b3b1d498b50add888dedfdc029df025ae980..ed62935e423a11523921a71644f35071b978e627 100644
--- a/services/dart/dart_apptests/pingpong_apptests.dart
+++ b/services/dart/dart_apptests/pingpong_apptests.dart
@@ -33,7 +33,7 @@ pingpongApptests(Application application) {
group('Ping-Pong Service Apptests', () {
// Verify that "pingpong.dart" implements the PingPongService interface
// and sends responses to our client.
- test('Ping Service To Pong Client', () { (() async {
+ test('Ping Service To Pong Client', () async {
var pingPongServiceProxy = new PingPongServiceProxy.unbound();
application.connectToService("mojo:dart_pingpong", pingPongServiceProxy);
@@ -51,12 +51,12 @@ pingpongApptests(Application application) {
pingPongClient.stub.close();
pingPongServiceProxy.close();
- })().then(expectAsync((_) => null));});
+ });
// Verify that "pingpong.dart" can connect to "pingpong_target.dart", act as
// its client, and return a Future that only resolves after the
// target.ping() => client.pong() methods have executed 9 times.
- test('Ping Target URL', () { (() async {
+ test('Ping Target URL', () async {
var pingPongServiceProxy = new PingPongServiceProxy.unbound();
application.connectToService("mojo:dart_pingpong", pingPongServiceProxy);
@@ -65,11 +65,11 @@ pingpongApptests(Application application) {
expect(r.ok, equals(true));
pingPongServiceProxy.close();
- })().then(expectAsync((_) => null));});
+ });
// Same as the previous test except that instead of providing the
// pingpong_target.dart URL, we provide a connection to its PingPongService.
- test('Ping Target Service', () { (() async {
+ test('Ping Target Service', () async {
var pingPongServiceProxy = new PingPongServiceProxy.unbound();
application.connectToService("mojo:dart_pingpong", pingPongServiceProxy);
@@ -88,10 +88,10 @@ pingpongApptests(Application application) {
targetServiceProxy.close();
pingPongServiceProxy.close();
- })().then(expectAsync((_) => null));});
+ });
// Verify that Dart can implement an interface "request" parameter.
- test('Get Target Service', () { (() async {
+ test('Get Target Service', () async {
var pingPongServiceProxy = new PingPongServiceProxy.unbound();
application.connectToService("mojo:dart_pingpong", pingPongServiceProxy);
@@ -113,6 +113,6 @@ pingpongApptests(Application application) {
pingPongClient.stub.close();
targetServiceProxy.close();
pingPongServiceProxy.close();
- })().then(expectAsync((_) => null));});
+ });
});
}
« no previous file with comments | « services/dart/dart_apptests/echo_apptests.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698