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

Unified Diff: frog/library.dart

Issue 9233015: Make test.dart run web tests on Windows. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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
Index: frog/library.dart
===================================================================
--- frog/library.dart (revision 3477)
+++ frog/library.dart (working copy)
@@ -63,6 +63,11 @@
if (filename.startsWith('/')) return filename;
if (filename.startsWith('file:///')) return filename;
if (filename.startsWith('http://')) return filename;
+ if (const RegExp('[a-zA-Z]:/').hasMatch(filename) &&
Bill Hesse 2012/01/22 20:52:02 Can't we use an anchored regexp here, if (const R
Emily Fortuna 2012/01/23 18:27:41 Much nicer. Done. On 2012/01/22 20:52:02, Bill He
+ filename.startsWith(
+ (const RegExp('[a-zA-Z]:/')).stringMatch(filename))) {
+ return filename;
+ }
return joinPaths(sourceDir, filename);
}

Powered by Google App Engine
This is Rietveld 408576698