File tree Expand file tree Collapse file tree 16 files changed +326
-0
lines changed Expand file tree Collapse file tree 16 files changed +326
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "expectedErrors" : {
3+ "1" : " Error: Method not found: 'importedFunc'."
4+ }
5+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
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.
4+
5+ importedFunc () => 'a' ;
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
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.
4+
5+ importedFunc () => 'a' ;
6+
7+ /** DIFF **/
8+ /*
9+ */
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
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.
4+
5+ importedFunc () => 'a' ;
6+
7+ /** DIFF **/
8+ /*
9+ */
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
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.
4+
5+ import 'package:expect/expect.dart' ;
6+ import 'package:reload_test/reload_test_utils.dart' ;
7+
8+ // Adapted from:
9+ // https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123
10+
11+ void helper () {}
12+
13+ Future <void > main () async {
14+ helper ();
15+ await hotReload (expectRejection: true );
16+ helper ();
17+ await hotReload ();
18+ helper ();
19+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
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.
4+
5+ import 'package:expect/expect.dart' ;
6+ import 'package:reload_test/reload_test_utils.dart' ;
7+
8+ import 'lib1.dart' hide importedFunc;
9+
10+ // Adapted from:
11+ // https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123
12+
13+ void helper () {
14+ Expect .equals ('a' , importedFunc ());
15+ }
16+
17+ Future <void > main () async {
18+ helper ();
19+ await hotReload (expectRejection: true );
20+ helper ();
21+ await hotReload ();
22+ helper ();
23+ }
24+
25+ /** DIFF **/
26+ /*
27+ @@ -5,10 +5,14 @@
28+ import 'package:expect/expect.dart';
29+ import 'package:reload_test/reload_test_utils.dart';
30+
31+ +import 'lib1.dart' hide importedFunc;
32+ +
33+ // Adapted from:
34+ // https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123
35+
36+ -void helper() {}
37+ +void helper() {
38+ + Expect.equals('a', importedFunc());
39+ +}
40+
41+ Future<void> main() async {
42+ helper();
43+ */
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
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.
4+
5+ import 'package:expect/expect.dart' ;
6+ import 'package:reload_test/reload_test_utils.dart' ;
7+
8+ import 'lib1.dart' ;
9+
10+ // Adapted from:
11+ // https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123
12+
13+ void helper () {
14+ Expect .equals ('a' , importedFunc ());
15+ }
16+
17+ Future <void > main () async {
18+ helper ();
19+ await hotReload (expectRejection: true );
20+ helper ();
21+ await hotReload ();
22+ helper ();
23+ }
24+
25+ /** DIFF **/
26+ /*
27+ @@ -5,7 +5,7 @@
28+ import 'package:expect/expect.dart';
29+ import 'package:reload_test/reload_test_utils.dart';
30+
31+ -import 'lib1.dart' hide importedFunc;
32+ +import 'lib1.dart';
33+
34+ // Adapted from:
35+ // https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123
36+ */
Original file line number Diff line number Diff line change 1+ {
2+ "expectedErrors" : {
3+ "1" : " Error: Method not found: 'importedFunc'." ,
4+ "2" : " Error: Method not found: 'importedIntFunc'."
5+ }
6+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
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.
4+
5+ // Adapted from:
6+ // https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153
7+
8+ importedFunc () => 'a' ;
9+ importedIntFunc () => 4 ;
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
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.
4+
5+ // Adapted from:
6+ // https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153
7+
8+ importedFunc () => 'a' ;
9+ importedIntFunc () => 4 ;
10+
11+ /** DIFF **/
12+ /*
13+ */
You can’t perform that action at this time.
0 commit comments