Revert "Simplify path handling logic in dependency checker and devFS (#8414)" (#8467)

This reverts commit e7bde11cc3.

Reason: broke hot reload when using "package:" style imports for sources
within the same project.
This commit is contained in:
Michael Goderbauer
2017-02-28 11:17:26 -08:00
committed by GitHub
parent 0533ffc020
commit 96ba7f76d2
6 changed files with 88 additions and 34 deletions

View File

@@ -21,8 +21,8 @@ void main() {
DartDependencySetBuilder builder =
new DartDependencySetBuilder(mainPath, testPath, packagesPath);
Set<String> dependencies = builder.build();
expect(dependencies.contains(mainPath), isTrue);
expect(dependencies.contains(fs.path.join(testPath, 'foo.dart')), isTrue);
expect(dependencies.contains('main.dart'), isTrue);
expect(dependencies.contains('foo.dart'), isTrue);
});
testUsingContext('syntax_error', () {
final String testPath = fs.path.join(dataPath, 'syntax_error');