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

Unified Diff: tests/compiler/dart2js/unparser_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/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index ffe478ce6d5fff0e639af4ae847218bc943d6008..1b4cd3a62e1fa770bfc167281f324030d2a694e9 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -49,12 +49,12 @@ class Platform {
''';
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);
}
/**
@@ -63,7 +63,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');
@@ -87,7 +87,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,
@@ -809,7 +809,7 @@ main() {
' foo( arg){}main(){var localvar;foo("5");}';
testDart2Dart(src,
(String result) { Expect.equals(expectedResult, result); },
- cutDeclarationTypes: true);
+ stripTypes: true);
}
main() {

Powered by Google App Engine
This is Rietveld 408576698