OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // Test of FunctionUpdate by pretty printing the updated element before and | 5 // Test of FunctionUpdate by pretty printing the updated element before and |
6 // after. | 6 // after. |
7 library trydart.library_updater_test; | 7 library trydart.library_updater_test; |
8 | 8 |
9 import 'dart:convert' show | 9 import 'dart:convert' show |
10 UTF8; | 10 UTF8; |
11 | 11 |
12 import 'package:dart2js_incremental/library_updater.dart' show | 12 import 'package:dart2js_incremental/library_updater.dart' show |
13 LibraryUpdater, | 13 LibraryUpdater, |
14 Update; | 14 Update; |
15 | 15 |
16 import 'package:compiler/implementation/scanner/scannerlib.dart' show | 16 import 'package:compiler/src/scanner/scannerlib.dart' show |
17 PartialFunctionElement; | 17 PartialFunctionElement; |
18 | 18 |
19 import 'compiler_test_case.dart'; | 19 import 'compiler_test_case.dart'; |
20 | 20 |
21 import 'library_updater_test.dart' show | 21 import 'library_updater_test.dart' show |
22 LibraryUpdaterTestCase, | 22 LibraryUpdaterTestCase, |
23 nolog; | 23 nolog; |
24 | 24 |
25 class ApplyUpdateTestCase extends LibraryUpdaterTestCase { | 25 class ApplyUpdateTestCase extends LibraryUpdaterTestCase { |
26 final String expectedUpdate; | 26 final String expectedUpdate; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 new ApplyUpdateTestCase( | 90 new ApplyUpdateTestCase( |
91 before: 'main(){}', | 91 before: 'main(){}', |
92 after: 'main()=>null;', | 92 after: 'main()=>null;', |
93 update: 'main'), | 93 update: 'main'), |
94 | 94 |
95 // TODO(ahe): When supporting class members, test abstract methods. | 95 // TODO(ahe): When supporting class members, test abstract methods. |
96 ] | 96 ] |
97 ); | 97 ); |
98 } | 98 } |
OLD | NEW |