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

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: Remove duplicated word in comment. 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 1777711dc1650ecde42f703d2ac9534399b9b0b6..6ebd5737f29403d8d92a02f0bcf9dbfc972d6ff4 100644
--- a/dart/tests/try/web/incremental_compilation_update_test.dart
+++ b/dart/tests/try/web/incremental_compilation_update_test.dart
@@ -1307,6 +1307,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