-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 5ec1002 into dev
- Loading branch information
Showing
18 changed files
with
332 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"expectedErrors": { | ||
"1": "Error: Method not found: 'importedFunc'." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
importedFunc() => 'a'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
importedFunc() => 'a'; | ||
|
||
/** DIFF **/ | ||
/* | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
importedFunc() => 'a'; | ||
|
||
/** DIFF **/ | ||
/* | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123 | ||
|
||
void helper() {} | ||
|
||
Future<void> main() async { | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(); | ||
helper(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
|
||
import 'lib1.dart' hide importedFunc; | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123 | ||
|
||
void helper() { | ||
Expect.equals('a', importedFunc()); | ||
} | ||
|
||
Future<void> main() async { | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(); | ||
helper(); | ||
} | ||
|
||
/** DIFF **/ | ||
/* | ||
@@ -5,10 +5,14 @@ | ||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
+import 'lib1.dart' hide importedFunc; | ||
+ | ||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123 | ||
-void helper() {} | ||
+void helper() { | ||
+ Expect.equals('a', importedFunc()); | ||
+} | ||
Future<void> main() async { | ||
helper(); | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
|
||
import 'lib1.dart'; | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123 | ||
|
||
void helper() { | ||
Expect.equals('a', importedFunc()); | ||
} | ||
|
||
Future<void> main() async { | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(); | ||
helper(); | ||
} | ||
|
||
/** DIFF **/ | ||
/* | ||
@@ -5,7 +5,7 @@ | ||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
-import 'lib1.dart' hide importedFunc; | ||
+import 'lib1.dart'; | ||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1123 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"expectedErrors": { | ||
"1": "Error: Method not found: 'importedFunc'.", | ||
"2": "Error: Method not found: 'importedIntFunc'." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
|
||
importedFunc() => 'a'; | ||
importedIntFunc() => 4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
|
||
importedFunc() => 'a'; | ||
importedIntFunc() => 4; | ||
|
||
/** DIFF **/ | ||
/* | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
|
||
importedFunc() => 'a'; | ||
importedIntFunc() => 4; | ||
|
||
/** DIFF **/ | ||
/* | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
|
||
importedFunc() => 'a'; | ||
importedIntFunc() => 4; | ||
|
||
/** DIFF **/ | ||
/* | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
|
||
import 'lib1.dart' show importedIntFunc; | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
|
||
void helper() { | ||
Expect.equals(4, importedIntFunc()); | ||
} | ||
|
||
Future<void> main() async { | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(); | ||
helper(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
|
||
import 'lib1.dart' show importedIntFunc; | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
|
||
void helper() { | ||
Expect.equals(4, importedFunc()); | ||
} | ||
|
||
Future<void> main() async { | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(); | ||
helper(); | ||
} | ||
|
||
/** DIFF **/ | ||
/* | ||
@@ -11,7 +11,7 @@ | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
void helper() { | ||
- Expect.equals(4, importedIntFunc()); | ||
+ Expect.equals(4, importedFunc()); | ||
} | ||
Future<void> main() async { | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
|
||
import 'lib1.dart' show importedFunc; | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
|
||
void helper() { | ||
Expect.equals(4, importedIntFunc()); | ||
} | ||
|
||
Future<void> main() async { | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(); | ||
helper(); | ||
} | ||
|
||
/** DIFF **/ | ||
/* | ||
@@ -5,13 +5,13 @@ | ||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
-import 'lib1.dart' show importedIntFunc; | ||
+import 'lib1.dart' show importedFunc; | ||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
void helper() { | ||
- Expect.equals(4, importedFunc()); | ||
+ Expect.equals(4, importedIntFunc()); | ||
} | ||
Future<void> main() async { | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:expect/expect.dart'; | ||
import 'package:reload_test/reload_test_utils.dart'; | ||
|
||
import 'lib1.dart' show importedFunc; | ||
|
||
// Adapted from: | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
|
||
void helper() { | ||
Expect.equals('a', importedFunc()); | ||
} | ||
|
||
Future<void> main() async { | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(expectRejection: true); | ||
helper(); | ||
await hotReload(); | ||
helper(); | ||
} | ||
|
||
/** DIFF **/ | ||
/* | ||
@@ -11,7 +11,7 @@ | ||
// https://github.com/dart-lang/sdk/blob/9f465e5b6eab0dc3af96140189d4f0190e0ff925/runtime/vm/isolate_reload_test.cc#L1153 | ||
void helper() { | ||
- Expect.equals(4, importedIntFunc()); | ||
+ Expect.equals('a', importedFunc()); | ||
} | ||
Future<void> main() async { | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,5 @@ CHANNEL dev | |
MAJOR 3 | ||
MINOR 8 | ||
PATCH 0 | ||
PRERELEASE 20 | ||
PRERELEASE 21 | ||
PRERELEASE_PATCH 0 |