Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: tests/compiler/dart2js/library_resolution_test.dart

Issue 2346053002: dart2js: fix tests after moving to .packages in the SDK repo (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/incremental/hello_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/library_resolution_test.dart
diff --git a/tests/compiler/dart2js/library_resolution_test.dart b/tests/compiler/dart2js/library_resolution_test.dart
index 93a039e66f3db5483c74576e592f3f8afc1162c1..2482ccae8f21fe8eff4f705b0c24b30d7076a448 100644
--- a/tests/compiler/dart2js/library_resolution_test.dart
+++ b/tests/compiler/dart2js/library_resolution_test.dart
@@ -32,15 +32,17 @@ Uri mock1LibraryUri = sdkRoot.resolve("lib/mock1.dart");
Uri mock2LibraryUri = sdkRoot.resolve("lib/mock2.dart");
class CustomCompiler extends CompilerImpl {
- CustomCompiler(provider, handler, libraryRoot, packageRoot)
- : super(provider, const NullCompilerOutput(), handler,
+ CustomCompiler(provider, handler, libraryRoot, packageConfig)
+ : super(
+ provider,
+ const NullCompilerOutput(),
+ handler,
new CompilerOptions(
- libraryRoot: libraryRoot,
- packageRoot: packageRoot));
+ libraryRoot: libraryRoot, packageConfig: packageConfig));
}
main() async {
- Uri packageRoot = Uri.base.resolve(Platform.packageRoot);
+ Uri packageConfig = Uri.base.resolve('.packages');
var provider = new MemorySourceFileProvider(MEMORY_SOURCE_FILES);
var handler = new FormattingDiagnosticHandler(provider);
@@ -55,8 +57,8 @@ main() async {
return provider.readStringFromUri(uri);
}
- String expectedMessage = MessageTemplate.TEMPLATES[
- MessageKind.LIBRARY_NOT_FOUND]
+ String expectedMessage = MessageTemplate
+ .TEMPLATES[MessageKind.LIBRARY_NOT_FOUND]
.message({'resolvedUri': 'dart:mock2.dart'}).computeMessage();
int actualMessageCount = 0;
@@ -77,7 +79,7 @@ main() async {
new LegacyCompilerInput(wrappedProvider),
new LegacyCompilerDiagnostics(wrappedHandler),
sdkRoot,
- packageRoot);
+ packageConfig);
asyncStart();
await compiler.setupSdk();
« no previous file with comments | « tests/compiler/dart2js/incremental/hello_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698