| 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 2b593ad55e2ab1d6712480e9f6aae41c2718f71e..babde70e5d22f462072eb5c423215e4bd34694bd 100644
|
| --- a/dart/tests/try/web/incremental_compilation_update_test.dart
|
| +++ b/dart/tests/try/web/incremental_compilation_update_test.dart
|
| @@ -293,6 +293,55 @@ main() {
|
| const <String> ['v2']),
|
| ],
|
|
|
| + // Test that deleting a top-level method works.
|
| + const <ProgramResult>[
|
| + const ProgramResult(
|
| + """
|
| +toplevel() {
|
| + print('v1');
|
| +}
|
| +class C {
|
| + m() {
|
| + try {
|
| + toplevel();
|
| + } catch (e) {
|
| + print('v2');
|
| + }
|
| + }
|
| +}
|
| +var instance;
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new C();
|
| + }
|
| + instance.m();
|
| +}
|
| +""",
|
| + const <String> ['v1']),
|
| + const ProgramResult(
|
| + """
|
| +class C {
|
| + m() {
|
| + try {
|
| + toplevel();
|
| + } catch (e) {
|
| + print('v2');
|
| + }
|
| + }
|
| +}
|
| +var instance;
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new C();
|
| + }
|
| + instance.m();
|
| +}
|
| +""",
|
| + const <String> ['v2']),
|
| + ],
|
| +
|
| +
|
| +
|
| ];
|
|
|
| void main() {
|
|
|