From f9c779e02a3de0ea4bde464d3bff062e4e434382 Mon Sep 17 00:00:00 2001
From: Natalie Weizenbaum <nweiz@google.com>
Date: Wed, 1 Apr 2015 17:43:50 -0700
Subject: [PATCH] Properly convert paths to package root URIs.

Closes #44

R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1055513003
---
 CHANGELOG.md         | 2 ++
 lib/src/util/io.dart | 2 +-
 pubspec.yaml         | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index f91c39c7..f859781e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
 
 * Add support for `shelf` `0.6.0`.
 
+* Fix a "failed to load" bug on Windows.
+
 ### 0.12.0-beta.2
 
 * Rename the package to `test`. The `unittest` package will continue to exist
diff --git a/lib/src/util/io.dart b/lib/src/util/io.dart
index 39c336ac..4fd8c7e7 100644
--- a/lib/src/util/io.dart
+++ b/lib/src/util/io.dart
@@ -100,7 +100,7 @@ String packageRootFor(String path, [String override]) {
     throw new LoadException(path, "Directory $packageRoot does not exist.");
   }
 
-  return packageRoot;
+  return p.toUri(packageRoot).toString();
 }
 
 /// The library name must be globally unique, or the wrong library path may be
diff --git a/pubspec.yaml b/pubspec.yaml
index 07ff763e..b26c9d3f 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: test
-version: 0.12.0-beta.2
+version: 0.12.0-dev
 author: Dart Team <misc@dartlang.org>
 description: A library for writing dart unit tests.
 homepage: https://github.com/dart-lang/test
-- 
GitLab