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

Unified Diff: test/codegen_test.dart

Issue 1849133003: Work around dart:html inconsistency (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « lib/runtime/dart/html.js ('k') | tool/input_sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_test.dart
diff --git a/test/codegen_test.dart b/test/codegen_test.dart
index 0a3473585171aa8eddbcf45143fa75c24faf890a..9475dcaffab0a5864493b700d694bd6b00df2fe7 100644
--- a/test/codegen_test.dart
+++ b/test/codegen_test.dart
@@ -68,23 +68,24 @@ main(arguments) {
var expectDir = path.join(inputDir, 'expect');
- BatchCompiler createCompiler(DartUriResolver sdkResolver, {bool checkSdk: false,
+ BatchCompiler createCompiler(DartUriResolver sdkResolver,
+ {bool checkSdk: false,
bool sourceMaps: false,
bool destructureNamedParams: false,
bool closure: false,
ModuleFormat moduleFormat: ModuleFormat.legacy}) {
-
String _testCodegenPath(String p1, [String p2]) =>
path.join(testDirectory, 'codegen', p1, p2);
- var context = createAnalysisContextWithSources(new SourceResolverOptions(
- customUrlMappings: {
+ var context = createAnalysisContextWithSources(
+ new SourceResolverOptions(customUrlMappings: {
'package:expect/expect.dart': _testCodegenPath('expect.dart'),
'package:async_helper/async_helper.dart':
- _testCodegenPath('async_helper.dart'),
+ _testCodegenPath('async_helper.dart'),
'package:unittest/unittest.dart': _testCodegenPath('unittest.dart'),
'package:dom/dom.dart': _testCodegenPath('sunflower', 'dom.dart')
- }), sdkResolver: sdkResolver);
+ }),
+ sdkResolver: sdkResolver);
// TODO(jmesserly): add a way to specify flags in the test file, so
// they're more self-contained.
@@ -223,8 +224,8 @@ $compilerMessages''';
});
test('devc dart:core', () {
- var testSdkResolver = createSdkPathResolver(path.join(
- testDirectory, '..', 'tool', 'generated_sdk'));
+ var testSdkResolver = createSdkPathResolver(
+ path.join(testDirectory, '..', 'tool', 'generated_sdk'));
// Get the test SDK. We use a checked in copy so test expectations can
// be generated against a specific SDK version.
« no previous file with comments | « lib/runtime/dart/html.js ('k') | tool/input_sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698