| 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() {
|
|
|