Index: pkg/smoke/test/codegen/end_to_end_test.dart |
diff --git a/pkg/smoke/test/codegen/end_to_end_test.dart b/pkg/smoke/test/codegen/end_to_end_test.dart |
index 2daaf9638eb20ce965028e497aa9990649803ecb..304fde00d4b20a661f7c14711cda250a35fa4309 100644 |
--- a/pkg/smoke/test/codegen/end_to_end_test.dart |
+++ b/pkg/smoke/test/codegen/end_to_end_test.dart |
@@ -24,9 +24,9 @@ main(args) { |
final updateStaticTest = args.length > 0 && args[0] == '--update_static_test'; |
test('static_test is up to date', () { |
- var scriptPath = Platform.script.path; |
- var testDir = path.posix.dirname(path.posix.dirname(scriptPath)); |
- var commonPath = path.posix.join(testDir, 'common.dart'); |
+ var scriptPath = path.fromUri(Platform.script); |
Siggi Cherem (dart-lang)
2014/03/19 17:30:13
after debugging on a windows machine, the problem
|
+ var testDir = path.dirname(path.dirname(scriptPath)); |
+ var commonPath = path.join(testDir, 'common.dart'); |
var testCode = new File('$commonPath').readAsStringSync(); |
var lib = initAnalyzer({'common.dart' : testCode}) |
.libraryFor('common.dart'); |
@@ -105,7 +105,7 @@ main(args) { |
withAnnotations: [vars[0], vars[1], lib.getType('Annot')])); |
var code = _createEntrypoint(generator); |
- var staticTestFile = new File(path.posix.join(testDir, 'static_test.dart')); |
+ var staticTestFile = new File(path.join(testDir, 'static_test.dart')); |
var existingCode = staticTestFile.readAsStringSync(); |
if (!updateStaticTest) { |
expect(code, existingCode); |