Chromium Code Reviews| Index: testing/dart/multitest.dart |
| =================================================================== |
| --- testing/dart/multitest.dart (revision 1975) |
| +++ testing/dart/multitest.dart (working copy) |
| @@ -188,15 +188,13 @@ |
| if (!parent_dir.existsSync()) { |
| parent_dir.createSync(); |
| } |
| - final String prefix = 'tests/'; |
| - final String suffix = '/src'; |
| - Expect.isTrue(testDir.startsWith(prefix)); |
| - Expect.isTrue(testDir.endsWith(suffix)); |
| - String path = parent_dir.path + |
| - testDir.substring(prefix.length, testDir.length - suffix.length); |
| + var split = testDir.split(new Platform().pathSeparator()); |
| + Expect.isTrue(split.removeLast() == 'src'); |
|
Bill Hesse
2011/12/01 12:59:34
Even though Expect runs all the time, not like ass
Mads Ager (google)
2011/12/01 13:02:04
Yeah, I probably should remove the last element on
|
| + String path = parent_dir.path + split.last(); |
| Directory dir = new Directory(path); |
| if (!dir.existsSync()) { |
| dir.createSync(); |
| } |
| return path; |
| -} |
| +} |
| + |
|
Bill Hesse
2011/12/01 12:59:34
Trailing blank line.
Mads Ager (google)
2011/12/01 13:02:04
Done.
|