Index: test/codegen/lib/html/async_oneshot.dart |
diff --git a/test/codegen/lib/html/async_oneshot.dart b/test/codegen/lib/html/async_oneshot.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3ed24f16c2422d8154fc4f8d68e3f034ef113711 |
--- /dev/null |
+++ b/test/codegen/lib/html/async_oneshot.dart |
@@ -0,0 +1,11 @@ |
+import 'dart:async'; |
+import 'package:unittest/unittest.dart'; |
+ |
+main(message, replyTo) { |
+ var command = message.first; |
+ expect(command, 'START'); |
+ new Timer(const Duration(milliseconds: 10), () { |
+ replyTo.send('DONE'); |
+ }); |
+} |
+ |