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

Unified Diff: pkg/third_party/html5lib/test/support.dart

Issue 46063010: Change dart:io Platform.script to return a Uri. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 2 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: pkg/third_party/html5lib/test/support.dart
diff --git a/pkg/third_party/html5lib/test/support.dart b/pkg/third_party/html5lib/test/support.dart
index 22b0f480845ae2b476c104ec16d7bae62c27c2a5..f894aa4a487b55f42b3578ea48c33cf14fbfc384 100644
--- a/pkg/third_party/html5lib/test/support.dart
+++ b/pkg/third_party/html5lib/test/support.dart
@@ -20,7 +20,7 @@ Map<String, TreeBuilderFactory> get treeTypes {
return _treeTypes;
}
-final testDataDir = path.join(path.dirname(Platform.script), 'data');
+final testDataDir = Platform.script.resolve('data').toFilePath();
Iterable<String> getDataFiles(String subdirectory) {
var dir = new Directory(path.join(testDataDir, subdirectory));
« no previous file with comments | « pkg/scheduled_test/test/scheduled_process_test.dart ('k') | samples/sample_extension/test/sample_extension_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698