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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); | 892 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); |
893 } else if (new File.fromPath(txtPath).existsSync()) { | 893 } else if (new File.fromPath(txtPath).existsSync()) { |
894 expectedOutput = txtPath; | 894 expectedOutput = txtPath; |
895 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); | 895 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); |
896 } else { | 896 } else { |
897 final htmlLocation = new Path.fromNative(htmlPath); | 897 final htmlLocation = new Path.fromNative(htmlPath); |
898 content = getHtmlContents( | 898 content = getHtmlContents( |
899 filename, | 899 filename, |
900 dartDir.append('pkg/unittest/test_controller.js') | 900 dartDir.append('pkg/unittest/test_controller.js') |
901 .relativeTo(htmlLocation), | 901 .relativeTo(htmlLocation), |
902 dartDir.append('client/dart.js').relativeTo(htmlLocation), | 902 dartDir.append('pkg/browser/lib/dart.js').relativeTo(htmlLocation), |
903 scriptType, | 903 scriptType, |
904 new Path.fromNative(scriptPath).relativeTo(htmlLocation)); | 904 new Path.fromNative(scriptPath).relativeTo(htmlLocation)); |
905 } | 905 } |
906 htmlTest.writeStringSync(content); | 906 htmlTest.writeStringSync(content); |
907 htmlTest.closeSync(); | 907 htmlTest.closeSync(); |
908 | 908 |
909 // Construct the command(s) that compile all the inputs needed by the | 909 // Construct the command(s) that compile all the inputs needed by the |
910 // browser test. For running Dart in DRT, this will be noop commands. | 910 // browser test. For running Dart in DRT, this will be noop commands. |
911 List<Command> commands = []; | 911 List<Command> commands = []; |
912 if (compiler != 'none') { | 912 if (compiler != 'none') { |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1806 * $pass tests are expected to pass | 1806 * $pass tests are expected to pass |
1807 * $failOk tests are expected to fail that we won't fix | 1807 * $failOk tests are expected to fail that we won't fix |
1808 * $fail tests are expected to fail that we should fix | 1808 * $fail tests are expected to fail that we should fix |
1809 * $crash tests are expected to crash that we should fix | 1809 * $crash tests are expected to crash that we should fix |
1810 * $timeout tests are allowed to timeout | 1810 * $timeout tests are allowed to timeout |
1811 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1811 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
1812 """; | 1812 """; |
1813 print(report); | 1813 print(report); |
1814 } | 1814 } |
1815 } | 1815 } |
OLD | NEW |