| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 String optionsName = ''; | 442 String optionsName = ''; |
| 443 if (optionsFromFile['vmOptions'].length > 1) { | 443 if (optionsFromFile['vmOptions'].length > 1) { |
| 444 optionsName = Strings.join(vmOptions, '-').replaceAll('-','') | 444 optionsName = Strings.join(vmOptions, '-').replaceAll('-','') |
| 445 .replaceAll('=','') | 445 .replaceAll('=','') |
| 446 .replaceAll('/',''); | 446 .replaceAll('/',''); |
| 447 } | 447 } |
| 448 Directory tempDir = createOutputDirectory(testPath, optionsName); | 448 Directory tempDir = createOutputDirectory(testPath, optionsName); |
| 449 | 449 |
| 450 String dartWrapperFilename = '${tempDir.path}/test.dart'; | 450 String dartWrapperFilename = '${tempDir.path}/test.dart'; |
| 451 String compiledDartWrapperFilename = '${tempDir.path}/test.js'; | 451 String compiledDartWrapperFilename = '${tempDir.path}/test.js'; |
| 452 String domLibraryImport = (component == 'chromium') ? | 452 String domLibraryImport = 'dart:dom'; |
| 453 '$dartDir/client/testing/unittest/dom_for_unittest.dart' : 'dart:dom'; | |
| 454 | 453 |
| 455 String htmlPath = '${tempDir.path}/test.html'; | 454 String htmlPath = '${tempDir.path}/test.html'; |
| 456 if (!isWebTest) { | 455 if (!isWebTest) { |
| 457 // test.dart will import the dart test directly, if it is a library, | 456 // test.dart will import the dart test directly, if it is a library, |
| 458 // or indirectly through test_as_library.dart, if it is not. | 457 // or indirectly through test_as_library.dart, if it is not. |
| 459 String dartLibraryFilename; | 458 String dartLibraryFilename; |
| 460 if (isLibraryDefinition) { | 459 if (isLibraryDefinition) { |
| 461 dartLibraryFilename = testPath; | 460 dartLibraryFilename = testPath; |
| 462 } else { | 461 } else { |
| 463 dartLibraryFilename = 'test_as_library.dart'; | 462 dartLibraryFilename = 'test_as_library.dart'; |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 * $noCrash tests are expected to be flaky but not crash | 1217 * $noCrash tests are expected to be flaky but not crash |
| 1219 * $pass tests are expected to pass | 1218 * $pass tests are expected to pass |
| 1220 * $failOk tests are expected to fail that we won't fix | 1219 * $failOk tests are expected to fail that we won't fix |
| 1221 * $fail tests are expected to fail that we should fix | 1220 * $fail tests are expected to fail that we should fix |
| 1222 * $crash tests are expected to crash that we should fix | 1221 * $crash tests are expected to crash that we should fix |
| 1223 * $timeout tests are allowed to timeout | 1222 * $timeout tests are allowed to timeout |
| 1224 """; | 1223 """; |
| 1225 print(report); | 1224 print(report); |
| 1226 } | 1225 } |
| 1227 } | 1226 } |
| OLD | NEW |