| Index: pkg/front_end/test/kernel_generator_test.dart
|
| diff --git a/pkg/front_end/test/kernel_generator_test.dart b/pkg/front_end/test/kernel_generator_test.dart
|
| index 6620a094bf3f53029aed232d06b247cb2229aae5..4f6bcf613d5296ac59d5c4db7eda778347bb7f9f 100644
|
| --- a/pkg/front_end/test/kernel_generator_test.dart
|
| +++ b/pkg/front_end/test/kernel_generator_test.dart
|
| @@ -17,7 +17,7 @@ main() {
|
| test('compiler fails if it cannot find sdk sources', () async {
|
| var errors = [];
|
| var options = new CompilerOptions()
|
| - ..dartLibraries = invalidCoreLibs
|
| + ..librariesSpecUri = invalidCoreLibsSpecUri
|
| ..sdkSummary = null
|
| ..compileSdk = true // To prevent FE from loading an sdk-summary.
|
| ..onError = (e) => errors.add(e);
|
| @@ -42,9 +42,10 @@ main() {
|
|
|
| test('by default program is compiled using summaries', () async {
|
| var options = new CompilerOptions()
|
| - // Note: we define [dartLibraries] with broken URIs to ensure we do not
|
| - // attempt to lookup for sources of the sdk directly.
|
| - ..dartLibraries = invalidCoreLibs;
|
| + // Note: we define [librariesSpecUri] with a specification that contains
|
| + // broken URIs to ensure we do not attempt to lookup for sources of the
|
| + // sdk directly.
|
| + ..librariesSpecUri = invalidCoreLibsSpecUri;
|
| var program =
|
| await compileScript('main() => print("hi");', options: options);
|
| var core = program.libraries.firstWhere(isDartCoreLibrary);
|
|
|