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

Unified Diff: tests/compiler/dart2js_extra/mirror_test.dart

Issue 23460050: Mirror removals: async invoke, mirrorSystemOf(port), Mirror.mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « sdk/lib/_internal/lib/js_mirrors.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/mirror_test.dart
diff --git a/tests/compiler/dart2js_extra/mirror_test.dart b/tests/compiler/dart2js_extra/mirror_test.dart
index dbc2b46b2acc6368c15005277bd054314a2a0053..5c4e452e1067b0234ca399b63ae696e123ed90ee 100644
--- a/tests/compiler/dart2js_extra/mirror_test.dart
+++ b/tests/compiler/dart2js_extra/mirror_test.dart
@@ -5,9 +5,7 @@
import "package:expect/expect.dart";
import 'dart:mirrors';
-import 'async_helper.dart';
-
-void test(void onDone(bool success)) {
+void main() {
var now = new DateTime.now();
InstanceMirror mirror = reflect(now);
print('now: ${now}');
@@ -18,15 +16,4 @@ void test(void onDone(bool success)) {
print('mirror.invoke("toUtc", []): $value');
Expect.isTrue(value.hasReflectee);
Expect.equals(now.toUtc(), value.reflectee);
-
- mirror.invokeAsync(const Symbol("toUtc"), []).then((value) {
- print('mirror.invokeAsync("toUtc", []): $value');
- Expect.isTrue(value.hasReflectee);
- Expect.equals(now.toUtc(), value.reflectee);
- onDone(true);
- });
-}
-
-void main() {
- asyncTest(test);
}
« no previous file with comments | « sdk/lib/_internal/lib/js_mirrors.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698