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

Unified Diff: tests/compiler/dart2js/backend_dart/dart_backend_test.dart

Issue 1408253006: Introduce "platform configurations" to replace categories and libraries.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix create_sdk scripts according to review Created 5 years, 1 month 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/analyze_only_test.dart ('k') | tests/compiler/dart2js/categories_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/backend_dart/dart_backend_test.dart
diff --git a/tests/compiler/dart2js/backend_dart/dart_backend_test.dart b/tests/compiler/dart2js/backend_dart/dart_backend_test.dart
index 597f056807ce4dbebd1a5f106413d1b4a2e46e00..5db41609dec547c8c909363abd9ba66bb1019b7c 100644
--- a/tests/compiler/dart2js/backend_dart/dart_backend_test.dart
+++ b/tests/compiler/dart2js/backend_dart/dart_backend_test.dart
@@ -4,6 +4,7 @@
import "package:expect/expect.dart";
import 'dart:async';
+import 'dart:io' as io;
import "package:async_helper/async_helper.dart";
import '../mock_compiler.dart';
import '../mock_libraries.dart';
@@ -58,7 +59,9 @@ testDart2Dart(String mainSrc, {String librarySrc,
if (uri.toString() == libUri.toString()) {
return new Future.value(librarySrc);
}
- if (uri.path.endsWith('/core.dart')) {
+ if (uri.path.endsWith('/dart2dart.platform')) {
+ return new io.File.fromUri(uri).readAsBytes();
+ } else if (uri.path.endsWith('/core.dart')) {
return new Future.value(buildLibrarySource(DEFAULT_CORE_LIBRARY));
} else if (uri.path.endsWith('/core_patch.dart')) {
return new Future.value(DEFAULT_PATCH_CORE_SOURCE);
@@ -87,7 +90,6 @@ testDart2Dart(String mainSrc, {String librarySrc,
final options = <String>['--output-type=dart'];
// Some tests below are using dart:io.
- options.add('--categories=Client,Server');
if (minify) options.add('--minify');
if (stripTypes) options.add('--force-strip=types');
@@ -95,7 +97,7 @@ testDart2Dart(String mainSrc, {String librarySrc,
OutputCollector outputCollector = new OutputCollector();
return compile(
scriptUri,
- fileUri('libraryRoot/'),
+ Uri.base.resolve('sdk/'),
fileUri('packageRoot/'),
provider,
handler,
« no previous file with comments | « tests/compiler/dart2js/analyze_only_test.dart ('k') | tests/compiler/dart2js/categories_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698