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

Unified Diff: tests/compiler/dart2js/kernel/constructors_test.dart

Issue 2614983004: Reapply 0c78abd0900d (Closed)
Patch Set: . 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
« no previous file with comments | « tests/compiler/dart2js/categories_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/constructors_test.dart
diff --git a/tests/compiler/dart2js/kernel/constructors_test.dart b/tests/compiler/dart2js/kernel/constructors_test.dart
index ba38190007bc9453e3b42c892a9b7d3ae36fec57..2664910f2e276c899d1309e76201aede61d0380d 100644
--- a/tests/compiler/dart2js/kernel/constructors_test.dart
+++ b/tests/compiler/dart2js/kernel/constructors_test.dart
@@ -46,6 +46,27 @@ main() => new Foo(number: 3);
''';
return check(code, lookup: defaultConstructorFor('Foo'));
});
+
+ // TODO(efortuna): Kernel needs to have some additional constructor
+ // implementaion work before this is legitimately equivalent code to the
+ // original AST.
+/* test('initialized field and constructor', () {
+ String code = '''
+import 'dart:_foreign_helper' show JS, JS_EMBEDDED_GLOBAL;
+import 'package:expect/expect.dart';
+
+
+class Foo {
+ final value = JS('bool', '#()', JS_EMBEDDED_GLOBAL('', 'foo'));
+ Foo() {
+ print('hello world');
+ }
+}
+
+main() => new Foo();
+''';
+ return check(code, lookup: defaultConstructorFor('Foo'));
+ });*/
}
defaultConstructorFor(String className) => (Compiler compiler) {
« no previous file with comments | « tests/compiler/dart2js/categories_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698