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

Unified Diff: pkg/smoke/test/codegen/end_to_end_test.dart

Issue 196573040: Fixing e2e test in windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « pkg/pkg.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ 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);
« no previous file with comments | « pkg/pkg.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698