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

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

Issue 738743002: Incremental compilation of added class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r41886 Created 6 years, 1 month 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 | « dart/pkg/dart2js_incremental/lib/library_updater.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9ecd92b39cd097b731b42f98c6d311448297ea65..5484f884600926fe40b3afe1e91ca13f70696f6c 100644
--- a/dart/tests/try/web/incremental_compilation_update_test.dart
+++ b/dart/tests/try/web/incremental_compilation_update_test.dart
@@ -789,6 +789,30 @@ main() {
""",
const <String>['v2']),
],
+
+ // Test that adding a class is supported.
+ const <ProgramResult>[
+ const ProgramResult(
+ r"""
+main() {
+ print('v1');
+}
+""",
+ const <String>['v1']),
+ const ProgramResult(
+ r"""
+class C {
+ void foo() {
+ print('v2');
+ }
+}
+
+main() {
+ new C().foo();
+}
+""",
+ const <String>['v2']),
+ ],
];
void main() {
« no previous file with comments | « dart/pkg/dart2js_incremental/lib/library_updater.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698