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

Unified Diff: tests/stub-generator/test_config.dart

Issue 9250009: Fix test.dart on Windows: change all backslashes to slashes eagerly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix error in stub_generator/test_config.dart Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/stub-generator/test_config.dart
diff --git a/tests/stub-generator/test_config.dart b/tests/stub-generator/test_config.dart
index e57ce66f9555cf2830e3d233fd853c9236c88731..8d1f2887668f8c0276aea69e9c8c6252adf640cb 100644
--- a/tests/stub-generator/test_config.dart
+++ b/tests/stub-generator/test_config.dart
@@ -101,7 +101,7 @@ class StubGeneratorTestSuite extends StandardTestSuite {
String classes,
Function onGenerated) {
testGeneratorStarted();
- Directory temp = createOutputDirectory(interfaceFile, '');
+ Directory temp = createOutputDirectory(filename, 'stub_generator');
File stubsOutFile = new File("${temp.path}/${interfaceFile}");
stubsOutFile.createSync();
@@ -121,6 +121,7 @@ class StubGeneratorTestSuite extends StandardTestSuite {
}
void processFile(String filename) {
+ filename = filename.replaceAll('\\', '/') ;
// Only run the tests that match the pattern.
RegExp pattern = configuration['selectors'][suiteName];
if (!pattern.hasMatch(filename)) return;
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698