blob: da22b0240e451c4d33358ac5384836e3ccd54714 [file] [log] [blame]
// 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 **/
/*
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 {
*/