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

Unified Diff: tests/compiler/dart2js/js_model/model_test.dart

Issue 2969993002: Handle instance/super methods in js_model/model_test (Closed)
Patch Set: Created 3 years, 5 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
« pkg/compiler/lib/src/world.dart ('K') | « pkg/compiler/lib/src/world.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/js_model/model_test.dart
diff --git a/tests/compiler/dart2js/js_model/model_test.dart b/tests/compiler/dart2js/js_model/model_test.dart
index 550248e0015269b98037bb0a973d7a42d1f3daf8..fe829f09a8425b7b0e34d7972935acd42f433c76 100644
--- a/tests/compiler/dart2js/js_model/model_test.dart
+++ b/tests/compiler/dart2js/js_model/model_test.dart
@@ -17,6 +17,20 @@ const Map<String, String> SOURCE = const <String, String>{
'main.dart': r'''
foo({named}) => 1;
bar(a) => !a;
+class Class {
+ var field;
+
+ Class();
+ Class.named(this.field);
+
+ method() {}
+}
+
+class SubClass extends Class {
+ method() {
+ super.method();
+ }
+}
main() {
foo();
@@ -24,6 +38,8 @@ main() {
[];
{};
new Object();
+ new Class.named('');
+ new SubClass().method();
}
'''
};
« pkg/compiler/lib/src/world.dart ('K') | « pkg/compiler/lib/src/world.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698