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

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

Issue 456373002: Don't use io prefix in test_suite.dart (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 // Running this in a shell sucks, but rmdir is not part of the standard 1960 // Running this in a shell sucks, but rmdir is not part of the standard
1961 // path. 1961 // path.
1962 return Process.run('rmdir', ['/s', '/q', native_path], runInShell: true) 1962 return Process.run('rmdir', ['/s', '/q', native_path], runInShell: true)
1963 .then((ProcessResult result) { 1963 .then((ProcessResult result) {
1964 if (result.exitCode != 0) { 1964 if (result.exitCode != 0) {
1965 throw new Exception('Can\'t delete path $native_path. ' 1965 throw new Exception('Can\'t delete path $native_path. '
1966 'This path might be too long'); 1966 'This path might be too long');
1967 } 1967 }
1968 }); 1968 });
1969 } else { 1969 } else {
1970 var dir = new io.Directory(path); 1970 var dir = new Directory(path);
1971 return dir.delete(recursive: true); 1971 return dir.delete(recursive: true);
1972 } 1972 }
1973 } 1973 }
1974 1974
1975 static Path debugLogfile() { 1975 static Path debugLogfile() {
1976 return new Path(".debug.log"); 1976 return new Path(".debug.log");
1977 } 1977 }
1978 1978
1979 static String flakyFileName() { 1979 static String flakyFileName() {
1980 // If a flaky test did fail, infos about it (i.e. test name, stdin, stdout) 1980 // If a flaky test did fail, infos about it (i.e. test name, stdin, stdout)
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
2282 * $pass tests are expected to pass 2282 * $pass tests are expected to pass
2283 * $failOk tests are expected to fail that we won't fix 2283 * $failOk tests are expected to fail that we won't fix
2284 * $fail tests are expected to fail that we should fix 2284 * $fail tests are expected to fail that we should fix
2285 * $crash tests are expected to crash that we should fix 2285 * $crash tests are expected to crash that we should fix
2286 * $timeout tests are allowed to timeout 2286 * $timeout tests are allowed to timeout
2287 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2287 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2288 """; 2288 """;
2289 print(report); 2289 print(report);
2290 } 2290 }
2291 } 2291 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698