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

* Simplify path handling logic in dependency checker and devFS

Simplification will make it easier to port this to Windows.

* Roll Engine to 0a7b177c330367904597a6129b3eb653d29dfca0
This commit is contained in:
Michael Goderbauer
2017-02-27 11:01:14 -08:00
committed by GitHub
parent adf3b90df2
commit e7bde11cc3
6 changed files with 34 additions and 88 deletions

View File

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