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

Unified Diff: tools/dom/docs/test/docs_test.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
« no previous file with comments | « tools/dom/docs/bin/docs.dart ('k') | utils/compiler/create_snapshot.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/docs/test/docs_test.dart
diff --git a/tools/dom/docs/test/docs_test.dart b/tools/dom/docs/test/docs_test.dart
index 6664aca61c6c088ae0bd40c6aa7e09b901d08820..4bf8c48e0ed0b4c6f413a0124c96f57f2ba528b5 100644
--- a/tools/dom/docs/test/docs_test.dart
+++ b/tools/dom/docs/test/docs_test.dart
@@ -12,7 +12,7 @@ import 'package:path/path.dart' as path;
import '../bin/docs.dart';
import '../lib/docs.dart';
-final testJsonPath = path.normalize(path.join(scriptDir, 'test.json'));
+final testJsonPath = Platform.script.resolve('test.json').toFilePath();
main() {
// Some tests take more than the default 20 second unittest timeout.
@@ -40,7 +40,7 @@ main() {
if (testJson.existsSync()) testJson.deleteSync();
assert(!testJson.existsSync());
- expect(convert(lib_path, testJsonPath)
+ expect(convert(lib_uri, testJsonPath)
.then((bool anyErrors) {
expect(anyErrors, isFalse);
« no previous file with comments | « tools/dom/docs/bin/docs.dart ('k') | utils/compiler/create_snapshot.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698