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

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

Issue 2641543003: Use "Object" as the reified type of covariant override parameters. (Closed)
Patch Set: Format. 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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', 'collection'), 89 path.join('lib', 'collection'),
90 path.join('lib', 'convert'), 90 path.join('lib', 'convert'),
91 path.join('lib', 'html'), 91 path.join('lib', 'html'),
92 // TODO(vsm): Fix these - they import files from a different directory
93 // - this triggers an invalid library root build error.
94 // path.join('lib', 'html', 'custom'),
95 path.join('lib', 'math'), 92 path.join('lib', 'math'),
96 path.join('lib', 'mirrors'), 93 path.join('lib', 'mirrors'),
97 path.join('lib', 'typed_data'), 94 path.join('lib', 'typed_data'),
98 ]; 95 ];
99 96
100 // Copy all of the test files and expanded multitest files to 97 // Copy all of the test files and expanded multitest files to
101 // gen/codegen_tests. We'll compile from there. 98 // gen/codegen_tests. We'll compile from there.
102 var testFiles = _setUpTests(testDirs); 99 var testFiles = _setUpTests(testDirs);
103 100
104 // Our default compiler options. Individual tests can override these. 101 // Our default compiler options. Individual tests can override these.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 var testFiles = <String>[]; 253 var testFiles = <String>[];
257 254
258 for (var testDir in testDirs) { 255 for (var testDir in testDirs) {
259 // Look for the tests in the "_strong" directories in the SDK's main 256 // Look for the tests in the "_strong" directories in the SDK's main
260 // "tests" directory. 257 // "tests" directory.
261 var dirParts = path.split(testDir); 258 var dirParts = path.split(testDir);
262 var sdkTestDir = 259 var sdkTestDir =
263 path.join(dirParts[0] + "_strong", path.joinAll(dirParts.skip(1))); 260 path.join(dirParts[0] + "_strong", path.joinAll(dirParts.skip(1)));
264 var inputPath = path.join(testDirectory, '../../../tests/', sdkTestDir); 261 var inputPath = path.join(testDirectory, '../../../tests/', sdkTestDir);
265 262
266 for (var file in _listFiles(inputPath, recursive: false)) { 263 for (var file in _listFiles(inputPath, recursive: true)) {
267 var relativePath = path.relative(file, from: inputPath); 264 var relativePath = path.relative(file, from: inputPath);
268 var outputPath = path.join(codegenTestDir, testDir, relativePath); 265 var outputPath = path.join(codegenTestDir, testDir, relativePath);
269 266
270 _ensureDirectory(path.dirname(outputPath)); 267 _ensureDirectory(path.dirname(outputPath));
271 268
272 // Copy it over. We do this even for multitests because import_self_test 269 // Copy it over. We do this even for multitests because import_self_test
273 // is a multitest, yet imports its own unexpanded form (!). 270 // is a multitest, yet imports its own unexpanded form (!).
274 new File(file).copySync(outputPath); 271 new File(file).copySync(outputPath);
275 272
276 if (file.endsWith("_test.dart")) { 273 if (file.endsWith("_test.dart")) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 'language/mixin_illegal_syntax_test_04_multi', 381 'language/mixin_illegal_syntax_test_04_multi',
385 'language/mixin_illegal_syntax_test_05_multi', 382 'language/mixin_illegal_syntax_test_05_multi',
386 'language/mixin_illegal_syntax_test_06_multi', 383 'language/mixin_illegal_syntax_test_06_multi',
387 'language/mixin_illegal_syntax_test_07_multi', 384 'language/mixin_illegal_syntax_test_07_multi',
388 'language/mixin_illegal_syntax_test_08_multi', 385 'language/mixin_illegal_syntax_test_08_multi',
389 'language/mixin_illegal_syntax_test_09_multi', 386 'language/mixin_illegal_syntax_test_09_multi',
390 'language/mixin_illegal_syntax_test_10_multi', 387 'language/mixin_illegal_syntax_test_10_multi',
391 'language/mixin_illegal_syntax_test_11_multi', 388 'language/mixin_illegal_syntax_test_11_multi',
392 'language/mixin_illegal_syntax_test_12_multi', 389 'language/mixin_illegal_syntax_test_12_multi',
393 'language/mixin_illegal_syntax_test_13_multi', 390 'language/mixin_illegal_syntax_test_13_multi',
394 'language/mixin_illegal_syntax_test_14_multi' 391 'language/mixin_illegal_syntax_test_14_multi',
392
393 // TODO(vsm): Fix these - they import files from a different directory
394 // - this triggers an invalid library root build error.
395 'lib/html/custom/attribute_changed_callback_test',
396 'lib/html/custom/entered_left_view_test',
397 'lib/html/custom/js_custom_test',
398 'lib/html/custom/mirrors_test',
399 'lib/html/custom/regress_194523002_test',
395 ]); 400 ]);
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/browser/language_tests.js ('k') | pkg/dev_compiler/test/not_yet_strong_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698