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

Unified Diff: dart/tests/try/web/incremental_compilation_update_test.dart

Issue 768993003: Track emitted classes in incremental compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42279. Created 6 years 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: dart/tests/try/web/incremental_compilation_update_test.dart
diff --git a/dart/tests/try/web/incremental_compilation_update_test.dart b/dart/tests/try/web/incremental_compilation_update_test.dart
index cf9bcb80bb4dfd91f9d2c6f1fb228f2743f3d489..66c77369fcdd1227b486e1284630cf0f03fba57b 100644
--- a/dart/tests/try/web/incremental_compilation_update_test.dart
+++ b/dart/tests/try/web/incremental_compilation_update_test.dart
@@ -1306,6 +1306,71 @@ main() {
""",
const <String>['v2']),
],
+
+ // Test that newly instantiated classes are handled correctly when there is
+ // more than one change.
+ const <ProgramResult>[
+ const ProgramResult(
+ r"""
+class A {
+ foo() {
+ print('Called foo');
+ }
+
+ bar() {
+ print('Called bar');
+ }
+}
+
+class B extends A {
+}
+
+main() {
+ new B().foo();
+}
+""",
+ const <String>['Called foo']),
+ const ProgramResult(
+ r"""
+class A {
+ foo() {
+ print('Called foo');
+ }
+
+ bar() {
+ print('Called bar');
+ }
+}
+
+class B extends A {
+}
+
+main() {
+ new B().foo();
+}
+""",
+ const <String>['Called foo']),
+ const ProgramResult(
+ r"""
+class A {
+ foo() {
+ print('Called foo');
+ }
+
+ bar() {
+ print('Called bar');
+ }
+}
+
+class B extends A {
+}
+
+main() {
+ new A().bar();
+}
+""",
+ const <String>['Called bar']),
+ ],
];
void main() {

Powered by Google App Engine
This is Rietveld 408576698