Chromium Code Reviews| 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 5484f884600926fe40b3afe1e91ca13f70696f6c..46b00be22cbb3439f3f93743ffd73a422399116c 100644 |
| --- a/dart/tests/try/web/incremental_compilation_update_test.dart |
| +++ b/dart/tests/try/web/incremental_compilation_update_test.dart |
| @@ -813,6 +813,39 @@ main() { |
| """, |
| const <String>['v2']), |
| ], |
| + |
| + // Test that removing a class is supported. |
| + // TODO(ahe): There should be a warning from second program, but there |
| + // isn't. Investigate and write test. |
|
Johnni Winther
2014/11/19 12:43:53
All a test in which a static property of C is used
ahe
2014/11/21 10:47:45
Done.
|
| + const <ProgramResult>[ |
| + const ProgramResult( |
| + r""" |
| +class C { |
| +} |
| + |
| +main() { |
| + try { |
| + new C(); |
| + print('v1'); |
| + } catch (e) { |
| + print('v2'); |
| + } |
| +} |
| +""", |
| + const <String>['v1']), |
| + const ProgramResult( |
| + r""" |
| +main() { |
| + try { |
| + new C(); |
| + print('v1'); |
| + } catch (e) { |
| + print('v2'); |
| + } |
| +} |
| +""", |
| + const <String>['v2']), |
| + ], |
| ]; |
| void main() { |