parent
65769699b0
commit
dd7910347a
|
@ -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;';
|
||||
}
|
||||
|
|
|
@ -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'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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.', () {
|
||||
|
|
Loading…
Reference in New Issue