| 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 0c88155a63bf25d082f9af48b3e2ca7fc95d19f4..995708a9d1b6b69843b0a6ced0a1e00eb82b372a 100644
|
| --- a/dart/tests/try/web/incremental_compilation_update_test.dart
|
| +++ b/dart/tests/try/web/incremental_compilation_update_test.dart
|
| @@ -996,6 +996,61 @@ main() {
|
| """,
|
| const <String>['v2']),
|
| ],
|
| +
|
| + // Test removing a field from a class works.
|
| + // TODO(ahe): The emitter still see the field, and we need to ensure that
|
| + // old names aren't used again.
|
| + const <ProgramResult>[
|
| + const ProgramResult(
|
| + r"""
|
| +class A {
|
| + var x;
|
| +}
|
| +
|
| +var instance;
|
| +
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new A();
|
| + }
|
| + try {
|
| + instance.x = 'v1';
|
| + } catch(e) {
|
| + print('setter threw');
|
| + }
|
| + try {
|
| + print(instance.x);
|
| + } catch (e) {
|
| + print('getter threw');
|
| + }
|
| +}
|
| +""",
|
| + const <String>['v1']),
|
| + const ProgramResult(
|
| + r"""
|
| +class A {
|
| +}
|
| +
|
| +var instance;
|
| +
|
| +main() {
|
| + if (instance == null) {
|
| + instance = new A();
|
| + }
|
| + try {
|
| + instance.x = 'v1';
|
| + } catch(e) {
|
| + print('setter threw');
|
| + }
|
| + try {
|
| + print(instance.x);
|
| + } catch (e) {
|
| + print('getter threw');
|
| + }
|
| +}
|
| +""",
|
| + const <String>['setter threw', 'getter threw']),
|
| + ],
|
| ];
|
|
|
| void main() {
|
| @@ -1022,7 +1077,6 @@ Future compileAndRun(List<ProgramResult> programs) {
|
| return listener.expect('iframe-ready').then((_) {
|
| ProgramResult program = programs.first;
|
|
|
| -
|
| status.append(
|
| new HeadingElement.h2()
|
| ..appendText("Full program #${testCount++}:"));
|
|
|