OLD | NEW |
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 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1603 * | 1603 * |
1604 * // DartOptions=--flag1 --flag2 | 1604 * // DartOptions=--flag1 --flag2 |
1605 * | 1605 * |
1606 * - For tests that depend on compiling other files with dart2js (e.g. | 1606 * - For tests that depend on compiling other files with dart2js (e.g. |
1607 * isolate tests that use multiple source scripts), you can specify | 1607 * isolate tests that use multiple source scripts), you can specify |
1608 * additional files to compile using a comment too, as follows: | 1608 * additional files to compile using a comment too, as follows: |
1609 * | 1609 * |
1610 * // OtherScripts=file1.dart file2.dart | 1610 * // OtherScripts=file1.dart file2.dart |
1611 * | 1611 * |
1612 * - You can indicate whether a test is treated as a web-only test by | 1612 * - You can indicate whether a test is treated as a web-only test by |
1613 * using an explicit import to a part of the the dart:html library: | 1613 * using an explicit import to a part of the dart:html library: |
1614 * | 1614 * |
1615 * import 'dart:html'; | 1615 * import 'dart:html'; |
1616 * import 'dart:web_audio'; | 1616 * import 'dart:web_audio'; |
1617 * import 'dart:indexed_db'; | 1617 * import 'dart:indexed_db'; |
1618 * import 'dart:svg'; | 1618 * import 'dart:svg'; |
1619 * import 'dart:web_sql'; | 1619 * import 'dart:web_sql'; |
1620 * | 1620 * |
1621 * Most tests are not web tests, but can (and will be) wrapped within | 1621 * Most tests are not web tests, but can (and will be) wrapped within |
1622 * another script file to test them also on browser environments (e.g. | 1622 * another script file to test them also on browser environments (e.g. |
1623 * language and corelib tests are run this way). We deduce that if this | 1623 * language and corelib tests are run this way). We deduce that if this |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2452 for (var key in PATH_REPLACEMENTS.keys) { | 2452 for (var key in PATH_REPLACEMENTS.keys) { |
2453 if (path.startsWith(key)) { | 2453 if (path.startsWith(key)) { |
2454 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2454 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
2455 break; | 2455 break; |
2456 } | 2456 } |
2457 } | 2457 } |
2458 } | 2458 } |
2459 return path; | 2459 return path; |
2460 } | 2460 } |
2461 } | 2461 } |
OLD | NEW |