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

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 13945008: Move the dart2js snapshot into bin directory of sdk root. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
« no previous file with comments | « tools/create_sdk.py ('k') | utils/compiler/compiler.gyp » ('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) 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 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 name, directory, 466 name, directory,
467 ['$directory/$name.status', '$directory/${name}_dart2js.status'], 467 ['$directory/$name.status', '$directory/${name}_dart2js.status'],
468 isTestFilePredicate: (filename) => filename.endsWith('_test.dart'), 468 isTestFilePredicate: (filename) => filename.endsWith('_test.dart'),
469 recursive: true); 469 recursive: true);
470 } 470 }
471 471
472 Collection<Uri> get dart2JsBootstrapDependencies { 472 Collection<Uri> get dart2JsBootstrapDependencies {
473 if (!useSdk) return []; 473 if (!useSdk) return [];
474 474
475 var snapshotPath = TestUtils.absolutePath(new Path(buildDir).join( 475 var snapshotPath = TestUtils.absolutePath(new Path(buildDir).join(
476 new Path('dart-sdk/lib/_internal/compiler/' 476 new Path('dart-sdk/bin/snapshots/'
477 'implementation/dart2js.dart.snapshot'))).toString(); 477 'utils_wrapper.dart.snapshot'))).toString();
478 return [new Uri.fromComponents(scheme: 'file', path: snapshotPath)]; 478 return [new Uri.fromComponents(scheme: 'file', path: snapshotPath)];
479 } 479 }
480 480
481 /** 481 /**
482 * The default implementation assumes a file is a test if 482 * The default implementation assumes a file is a test if
483 * it ends in "Test.dart". 483 * it ends in "Test.dart".
484 */ 484 */
485 bool isTestFile(String filename) { 485 bool isTestFile(String filename) {
486 // Use the specified predicate, if provided. 486 // Use the specified predicate, if provided.
487 if (isTestFilePredicate != null) return isTestFilePredicate(filename); 487 if (isTestFilePredicate != null) return isTestFilePredicate(filename);
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 * $pass tests are expected to pass 1933 * $pass tests are expected to pass
1934 * $failOk tests are expected to fail that we won't fix 1934 * $failOk tests are expected to fail that we won't fix
1935 * $fail tests are expected to fail that we should fix 1935 * $fail tests are expected to fail that we should fix
1936 * $crash tests are expected to crash that we should fix 1936 * $crash tests are expected to crash that we should fix
1937 * $timeout tests are allowed to timeout 1937 * $timeout tests are allowed to timeout
1938 * $compileErrorSkip tests are skipped on browsers due to compile-time error 1938 * $compileErrorSkip tests are skipped on browsers due to compile-time error
1939 """; 1939 """;
1940 print(report); 1940 print(report);
1941 } 1941 }
1942 } 1942 }
OLDNEW
« no previous file with comments | « tools/create_sdk.py ('k') | utils/compiler/compiler.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698