| 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 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 RegExp multiHtmlTestRegExp = | 1346 RegExp multiHtmlTestRegExp = |
| 1347 new RegExp(r"useHtmlIndividualConfiguration()"); | 1347 new RegExp(r"useHtmlIndividualConfiguration()"); |
| 1348 RegExp staticTypeRegExp = | 1348 RegExp staticTypeRegExp = |
| 1349 new RegExp(r"/// ([0-9][0-9]:){0,1}\s*static type warning"); | 1349 new RegExp(r"/// ([0-9][0-9]:){0,1}\s*static type warning"); |
| 1350 RegExp compileTimeRegExp = | 1350 RegExp compileTimeRegExp = |
| 1351 new RegExp(r"/// ([0-9][0-9]:){0,1}\s*compile-time error"); | 1351 new RegExp(r"/// ([0-9][0-9]:){0,1}\s*compile-time error"); |
| 1352 RegExp staticCleanRegExp = new RegExp(r"// @static-clean"); | 1352 RegExp staticCleanRegExp = new RegExp(r"// @static-clean"); |
| 1353 RegExp isolateStubsRegExp = new RegExp(r"// IsolateStubs=(.*)"); | 1353 RegExp isolateStubsRegExp = new RegExp(r"// IsolateStubs=(.*)"); |
| 1354 // TODO(gram) Clean these up once the old directives are not supported. | 1354 // TODO(gram) Clean these up once the old directives are not supported. |
| 1355 RegExp domImportRegExp = | 1355 RegExp domImportRegExp = |
| 1356 new RegExp(r"^[#]?import.*dart:[html|web_audio|indexed_db|svg|web_sql]", | 1356 new RegExp(r"^[#]?import.*dart:(html|web_audio|indexed_db|svg|web_sql)", |
| 1357 multiLine: true); | 1357 multiLine: true); |
| 1358 RegExp libraryDefinitionRegExp = | 1358 RegExp libraryDefinitionRegExp = |
| 1359 new RegExp(r"^[#]?library[\( ]", multiLine: true); | 1359 new RegExp(r"^[#]?library[\( ]", multiLine: true); |
| 1360 RegExp sourceOrImportRegExp = | 1360 RegExp sourceOrImportRegExp = |
| 1361 new RegExp("^(#source|#import|part)[ \t]+[\('\"]", multiLine: true); | 1361 new RegExp("^(#source|#import|part)[ \t]+[\('\"]", multiLine: true); |
| 1362 | 1362 |
| 1363 var bytes = new File.fromPath(filePath).readAsBytesSync(); | 1363 var bytes = new File.fromPath(filePath).readAsBytesSync(); |
| 1364 String contents = decodeUtf8(bytes); | 1364 String contents = decodeUtf8(bytes); |
| 1365 bytes = null; | 1365 bytes = null; |
| 1366 | 1366 |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1968 * $pass tests are expected to pass | 1968 * $pass tests are expected to pass |
| 1969 * $failOk tests are expected to fail that we won't fix | 1969 * $failOk tests are expected to fail that we won't fix |
| 1970 * $fail tests are expected to fail that we should fix | 1970 * $fail tests are expected to fail that we should fix |
| 1971 * $crash tests are expected to crash that we should fix | 1971 * $crash tests are expected to crash that we should fix |
| 1972 * $timeout tests are allowed to timeout | 1972 * $timeout tests are allowed to timeout |
| 1973 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1973 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1974 """; | 1974 """; |
| 1975 print(report); | 1975 print(report); |
| 1976 } | 1976 } |
| 1977 } | 1977 } |
| OLD | NEW |