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

Unified Diff: services/dart/dart_apptests/echo_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 | « mojo/public/dart/src/event_stream.dart ('k') | services/dart/dart_apptests/pingpong_apptests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/dart/dart_apptests/echo_apptests.dart
diff --git a/services/dart/dart_apptests/echo_apptests.dart b/services/dart/dart_apptests/echo_apptests.dart
index ce1626e7e2264fb4603da6908d554d8156bc7e74..62c152d304a6e0a667e92869dcab07d4d37f0379 100644
--- a/services/dart/dart_apptests/echo_apptests.dart
+++ b/services/dart/dart_apptests/echo_apptests.dart
@@ -12,7 +12,7 @@ import 'package:services/dart/test/echo_service.mojom.dart';
echoApptests(Application application) {
group('Echo Service Apptests', () {
- test('String', () { (() async {
+ test('String', () async {
var echoProxy = new EchoServiceProxy.unbound();
application.connectToService("mojo:dart_echo", echoProxy);
@@ -21,9 +21,11 @@ echoApptests(Application application) {
var q = await echoProxy.ptr.echoString("quit");
expect(q.value, equals("quit"));
- })().then(expectAsync((_) => null));});
- test('Empty String', () { (() async {
+ echoProxy.close();
+ });
+
+ test('Empty String', () async {
var echoProxy = new EchoServiceProxy.unbound();
application.connectToService("mojo:dart_echo", echoProxy);
@@ -32,9 +34,11 @@ echoApptests(Application application) {
var q = await echoProxy.ptr.echoString("quit");
expect(q.value, equals("quit"));
- })().then(expectAsync((_) => null));});
- test('Null String', () { (() async {
+ echoProxy.close();
+ });
+
+ test('Null String', () async {
var echoProxy = new EchoServiceProxy.unbound();
application.connectToService("mojo:dart_echo", echoProxy);
@@ -43,6 +47,8 @@ echoApptests(Application application) {
var q = await echoProxy.ptr.echoString("quit");
expect(q.value, equals("quit"));
- })().then(expectAsync((_) => null));});
+
+ echoProxy.close();
+ });
});
}
« no previous file with comments | « mojo/public/dart/src/event_stream.dart ('k') | services/dart/dart_apptests/pingpong_apptests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698