| 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 70ff478f030bc503fc9a07f892501315e122a4e5..70c65448e4d2204e2280b4614cedd2c136e1cba7 100644
|
| --- a/dart/tests/try/web/incremental_compilation_update_test.dart
|
| +++ b/dart/tests/try/web/incremental_compilation_update_test.dart
|
| @@ -159,8 +159,43 @@ main() {
|
| instance.m();
|
| }
|
| """,
|
| - // TODO(ahe): This test is failing, should print "v2".
|
| + const <String> ['v2']),
|
| + ],
|
| +
|
| + // Test that a stored instance tearoff changes behavior when updated.
|
| + const <ProgramResult>[
|
| + const ProgramResult(
|
| + """
|
| +class C {
|
| + m() {
|
| + print('v1');
|
| + }
|
| +}
|
| +var closure;
|
| +main() {
|
| + if (closure == null) {
|
| + closure = new C().m;
|
| + }
|
| + closure();
|
| +}
|
| +""",
|
| const <String> ['v1']),
|
| + const ProgramResult(
|
| + """
|
| +class C {
|
| + m() {
|
| + print('v2');
|
| + }
|
| +}
|
| +var closure;
|
| +main() {
|
| + if (closure == null) {
|
| + closure = new C().m;
|
| + }
|
| + closure();
|
| +}
|
| +""",
|
| + const <String> ['v2']),
|
| ],
|
| ];
|
|
|
|
|