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

Side by Side Diff: dart/tests/compiler/dart2js/dart_backend_test.dart

Issue 11740025: Add dart2js option to select library categories. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix dartdoc and some unit tests Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:uri'; 6 import 'dart:uri';
7 import 'parser_helper.dart'; 7 import 'parser_helper.dart';
8 import 'mock_compiler.dart'; 8 import 'mock_compiler.dart';
9 import '../../../sdk/lib/_internal/compiler/compiler.dart'; 9 import '../../../sdk/lib/_internal/compiler/compiler.dart';
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l eg; 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l eg;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 return new Future.immediate(''); 111 return new Future.immediate('');
112 } 112 }
113 113
114 handler(uri, begin, end, message, kind) { 114 handler(uri, begin, end, message, kind) {
115 if (identical(kind, Diagnostic.ERROR) || identical(kind, Diagnostic.CRASH)) { 115 if (identical(kind, Diagnostic.ERROR) || identical(kind, Diagnostic.CRASH)) {
116 Expect.fail('$uri: $begin-$end: $message [$kind]'); 116 Expect.fail('$uri: $begin-$end: $message [$kind]');
117 } 117 }
118 } 118 }
119 119
120 final options = <String>['--output-type=dart']; 120 final options = <String>['--output-type=dart'];
121 // Some tests below are using dart:io.
122 options.add('--categories=Client,Server');
121 if (minify) options.add('--minify'); 123 if (minify) options.add('--minify');
122 if (stripTypes) options.add('--force-strip=types'); 124 if (stripTypes) options.add('--force-strip=types');
123 125
124 compile( 126 compile(
125 scriptUri, 127 scriptUri,
126 fileUri('libraryRoot/'), 128 fileUri('libraryRoot/'),
127 fileUri('packageRoot/'), 129 fileUri('packageRoot/'),
128 provider, 130 provider,
129 handler, 131 handler,
130 options).then(continuation); 132 options).then(continuation);
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 testStaticAccessIoLib(); 754 testStaticAccessIoLib();
753 testLocalFunctionPlaceholder(); 755 testLocalFunctionPlaceholder();
754 testMinification(); 756 testMinification();
755 testClosureLocalsMinified(); 757 testClosureLocalsMinified();
756 testParametersMinified(); 758 testParametersMinified();
757 testDeclarationTypePlaceholders(); 759 testDeclarationTypePlaceholders();
758 testPlatformLibraryMemberNamesAreFixed(); 760 testPlatformLibraryMemberNamesAreFixed();
759 testConflictsWithCoreLib(); 761 testConflictsWithCoreLib();
760 testUnresolvedNamedConstructor(); 762 testUnresolvedNamedConstructor();
761 } 763 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js/analyze_api_test.dart ('k') | dart/tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698