chore(windows): fix the test.server.dart task

Closes #2703
This commit is contained in:
Marc Laval 2015-06-25 18:29:19 +02:00
parent 65769699b0
commit dd7910347a
3 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ class Rewriter {
String _importDebugReflectionCapabilities(ImportDirective node) {
var uri = '${node.uri}';
uri = path.join(path.dirname(uri), 'debug_${path.basename(uri)}');
uri = path.join(path.dirname(uri), 'debug_${path.basename(uri)}').replaceAll('\\', '/');
var asClause = node.prefix != null ? ' as ${node.prefix}' : '';
return 'import $uri$asClause;';
}

View File

@ -91,7 +91,7 @@ void _testNgDeps(String name, String inputPath,
expect(await reader.hasInput(expectedId)).toBeFalse();
} else {
expect(formatter.format(output))
.toEqual(await reader.readAsString(expectedId));
.toEqual((await reader.readAsString(expectedId)).replaceAll('\r\n', '\n'));
}
});
}

View File

@ -14,7 +14,7 @@ import '../common/read_file.dart';
void allTests() {
var codegen = new Codegen('web/index.dart', ['web/index.ng_deps.dart']);
var code = readFile('reflection_remover/index.dart');
var code = readFile('reflection_remover/index.dart').replaceAll('\r\n', '\n');
it('should remove uses of mirrors & '
'insert calls to generated code by default.', () {