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

Unified Diff: tests/compiler/dart2js/inference/send_test.dart

Issue 2656583003: Add inference test functionality based on code point id. (Closed)
Patch Set: Updated cf. comments Created 3 years, 11 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
Index: tests/compiler/dart2js/inference/send_test.dart
diff --git a/tests/compiler/dart2js/inference/send_test.dart b/tests/compiler/dart2js/inference/send_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4aaae6d6df7541108a77ccf6887ca6a22c402654
--- /dev/null
+++ b/tests/compiler/dart2js/inference/send_test.dart
@@ -0,0 +1,31 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'package:async_helper/async_helper.dart';
+import 'inference_test_helper.dart';
+
+const List<String> TESTS = const <String>[
+ '''
+class Super {
+ var field = 42;
+}
+class Sub extends Super {
+ method() {
+ var a = super.field = new Sub();
+ return a.@{[exact=Sub]}method;
+ }
+}
+main() {
+ new Sub().@{[exact=Sub]}method();
+}
+''',
+];
+
+main() {
+ asyncTest(() async {
+ for (String annotatedCode in TESTS) {
+ await checkCode(annotatedCode);
+ }
+ });
+}
« no previous file with comments | « tests/compiler/dart2js/inference/inference_test_helper.dart ('k') | tests/compiler/dart2js/sourcemaps/stacktrace_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698