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

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

Issue 10963055: [dart2dart] Make removal of asserts and forcing type strips go under (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: tests/compiler/dart2js/dart_backend_test.dart
diff --git a/tests/compiler/dart2js/dart_backend_test.dart b/tests/compiler/dart2js/dart_backend_test.dart
index cddaccace968a71a058aa9061f679e444c13ee42..77ebb03fdd823c6ff3787e92fc11577f26d7abd4 100644
--- a/tests/compiler/dart2js/dart_backend_test.dart
+++ b/tests/compiler/dart2js/dart_backend_test.dart
@@ -51,12 +51,12 @@ abstract class Navigator {
''';
testDart2Dart(String src, [void continuation(String s), bool minify = false,
- bool cutDeclarationTypes = false]) {
+ bool stripTypes = false]) {
// If continuation is not provided, check that source string remains the same.
if (continuation === null) {
continuation = (s) { Expect.equals(src, s); };
}
- testDart2DartWithLibrary(src, '', continuation, minify, cutDeclarationTypes);
+ testDart2DartWithLibrary(src, '', continuation, minify, stripTypes);
}
/**
@@ -65,7 +65,7 @@ testDart2Dart(String src, [void continuation(String s), bool minify = false,
testDart2DartWithLibrary(
String srcMain, String srcLibrary,
[void continuation(String s), bool minify = false,
- bool cutDeclarationTypes = false]) {
+ bool stripTypes = false]) {
fileUri(path) => new Uri.fromComponents(scheme: 'file', path: path);
final scriptUri = fileUri('script.dart');
@@ -91,7 +91,7 @@ testDart2DartWithLibrary(
final options = <String>['--output-type=dart'];
if (minify) options.add('--minify');
- if (cutDeclarationTypes) options.add('--force-cut-declaration-types');
+ if (stripTypes) options.add('--force-strip=types');
compile(
scriptUri,
@@ -752,7 +752,7 @@ main() {
' foo( arg){}main(){var localvar;foo("5");}';
testDart2Dart(src,
(String result) { Expect.equals(expectedResult, result); },
- cutDeclarationTypes: true);
+ stripTypes: true);
}
testPlatformLibraryMemberNamesAreFixed() {

Powered by Google App Engine
This is Rietveld 408576698