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..cbed95ef8e44f39cd7d89ee567c3d4c493c4f9e2 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 |
+ ..librariesSpecificationUri = 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 [librariesSpecificationUri] with a specification that |
+ // contains broken URIs to ensure we do not attempt to lookup for |
+ // sources of the sdk directly. |
+ ..librariesSpecificationUri = invalidCoreLibsSpecUri; |
var program = |
await compileScript('main() => print("hi");', options: options); |
var core = program.libraries.firstWhere(isDartCoreLibrary); |