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

Side by Side Diff: pkg/dev_compiler/test/codegen_test.dart

Issue 2619923002: Regen DDC error expectations (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | pkg/dev_compiler/tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 /// Tests code generation. 5 /// Tests code generation.
6 /// 6 ///
7 /// Runs Dart Dev Compiler on all input in the `codegen` directory and checks 7 /// Runs Dart Dev Compiler on all input in the `codegen` directory and checks
8 /// that the output is what we expected. 8 /// that the output is what we expected.
9 library dev_compiler.test.codegen_test; 9 library dev_compiler.test.codegen_test;
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 var sdkDir = path.join(repoDirectory, 'gen', 'patched_sdk'); 72 var sdkDir = path.join(repoDirectory, 'gen', 'patched_sdk');
73 var sdkSummaryFile = 73 var sdkSummaryFile =
74 path.join(testDirectory, '..', 'lib', 'sdk', 'ddc_sdk.sum'); 74 path.join(testDirectory, '..', 'lib', 'sdk', 'ddc_sdk.sum');
75 75
76 var summaryPaths = new Directory(path.join(codegenOutputDir, 'pkg')) 76 var summaryPaths = new Directory(path.join(codegenOutputDir, 'pkg'))
77 .listSync() 77 .listSync()
78 .map((e) => e.path) 78 .map((e) => e.path)
79 .where((p) => p.endsWith('.sum')) 79 .where((p) => p.endsWith('.sum'))
80 .toList(); 80 .toList();
81 81
82 var sharedCompiler = new ModuleCompiler( 82 var sharedCompiler = new ModuleCompiler(new AnalyzerOptions.basic(
83 new AnalyzerOptions.basic( 83 dartSdkSummaryPath: sdkSummaryFile, summaryPaths: summaryPaths));
84 dartSdkSummaryPath: sdkSummaryFile, summaryPaths: summaryPaths));
85 84
86 var testDirs = [ 85 var testDirs = [
87 'language', 86 'language',
88 'corelib', 87 'corelib',
89 path.join('corelib', 'regexp'), 88 path.join('corelib', 'regexp'),
90 path.join('lib', 'collection'), 89 path.join('lib', 'collection'),
91 path.join('lib', 'convert'), 90 path.join('lib', 'convert'),
92 path.join('lib', 'html'), 91 path.join('lib', 'html'),
93 // TODO(vsm): Fix these - they import files from a different directory 92 // TODO(vsm): Fix these - they import files from a different directory
94 // - this triggers an invalid library root build error. 93 // - this triggers an invalid library root build error.
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 StringLiteral uriLiteral = directive.uri; 358 StringLiteral uriLiteral = directive.uri;
360 String uriContent = uriLiteral.stringValue; 359 String uriContent = uriLiteral.stringValue;
361 if (uriContent != null) { 360 if (uriContent != null) {
362 uriContent = uriContent.trim(); 361 uriContent = uriContent.trim();
363 directive.uriContent = uriContent; 362 directive.uriContent = uriContent;
364 } 363 }
365 return (directive as UriBasedDirectiveImpl).validate() == null 364 return (directive as UriBasedDirectiveImpl).validate() == null
366 ? uriContent 365 ? uriContent
367 : null; 366 : null;
368 } 367 }
OLDNEW
« no previous file with comments | « no previous file | pkg/dev_compiler/tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698