OLD | NEW |
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 .where((p) => p.endsWith('.sum')) | 79 .where((p) => p.endsWith('.sum')) |
80 .toList(); | 80 .toList(); |
81 | 81 |
82 var sharedCompiler = new ModuleCompiler(new AnalyzerOptions.basic( | 82 var sharedCompiler = new ModuleCompiler(new AnalyzerOptions.basic( |
83 dartSdkSummaryPath: sdkSummaryFile, summaryPaths: summaryPaths)); | 83 dartSdkSummaryPath: sdkSummaryFile, summaryPaths: summaryPaths)); |
84 | 84 |
85 var testDirs = [ | 85 var testDirs = [ |
86 'language', | 86 'language', |
87 'corelib', | 87 'corelib', |
88 path.join('corelib', 'regexp'), | 88 path.join('corelib', 'regexp'), |
| 89 path.join('lib', 'async'), |
89 path.join('lib', 'collection'), | 90 path.join('lib', 'collection'), |
90 path.join('lib', 'convert'), | 91 path.join('lib', 'convert'), |
91 path.join('lib', 'html'), | 92 path.join('lib', 'html'), |
92 path.join('lib', 'math'), | 93 path.join('lib', 'math'), |
93 path.join('lib', 'mirrors'), | 94 path.join('lib', 'mirrors'), |
94 path.join('lib', 'typed_data'), | 95 path.join('lib', 'typed_data'), |
95 ]; | 96 ]; |
96 | 97 |
97 // Copy all of the test files and expanded multitest files to | 98 // Copy all of the test files and expanded multitest files to |
98 // gen/codegen_tests. We'll compile from there. | 99 // gen/codegen_tests. We'll compile from there. |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 395 |
395 // TODO(vsm): Fix these - they import files from a different directory | 396 // TODO(vsm): Fix these - they import files from a different directory |
396 // - this triggers an invalid library root build error. | 397 // - this triggers an invalid library root build error. |
397 'lib/html/custom/attribute_changed_callback_test', | 398 'lib/html/custom/attribute_changed_callback_test', |
398 'lib/html/custom/constructor_calls_created_synchronously_test', | 399 'lib/html/custom/constructor_calls_created_synchronously_test', |
399 'lib/html/custom/entered_left_view_test', | 400 'lib/html/custom/entered_left_view_test', |
400 'lib/html/custom/js_custom_test', | 401 'lib/html/custom/js_custom_test', |
401 'lib/html/custom/mirrors_test', | 402 'lib/html/custom/mirrors_test', |
402 'lib/html/custom/regress_194523002_test', | 403 'lib/html/custom/regress_194523002_test', |
403 ]); | 404 ]); |
OLD | NEW |