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

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

Issue 204113005: Fix end_to_end_test in windows (File takes posix style paths) (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 | « no previous file | 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 f3b95e0cb21074b0f6cfef25ddcaa050945075e3..37a627aafc6c473b1b62f9fa0dcbb33a2fb73415 100644
--- a/pkg/smoke/test/codegen/end_to_end_test.dart
+++ b/pkg/smoke/test/codegen/end_to_end_test.dart
@@ -25,8 +25,8 @@ main(args) {
test('static_test is up to date', () {
var scriptPath = Platform.script.path;
- var testDir = path.dirname(path.dirname(scriptPath));
- var commonPath = path.join(testDir, 'common.dart');
+ var testDir = path.posix.dirname(path.posix.dirname(scriptPath));
+ var commonPath = path.posix.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) {
recorder.runQuery(lib.getType('H'), options);
var code = _createEntrypoint(generator);
- var staticTestFile = new File(path.join(testDir, 'static_test.dart'));
+ var staticTestFile = new File(path.posix.join(testDir, 'static_test.dart'));
var existingCode = staticTestFile.readAsStringSync();
if (!updateStaticTest) {
expect(code, existingCode);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698