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

Unified Diff: tools/dom/docs/test/docs_test.dart

Issue 19705015: Switch docs to path package (away from dart:io Path). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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/lib/docs.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/docs/test/docs_test.dart
===================================================================
--- tools/dom/docs/test/docs_test.dart (revision 25319)
+++ tools/dom/docs/test/docs_test.dart (working copy)
@@ -7,16 +7,17 @@
import 'dart:io';
import 'package:unittest/unittest.dart';
+import 'package:path/path.dart' as path;
import '../bin/docs.dart';
import '../lib/docs.dart';
-final testJsonPath = scriptDir.append('test.json').canonicalize();
+final testJsonPath = path.normalize(path.join(scriptDir, 'test.json'));
main() {
group('docs', () {
- var oldJson = new File.fromPath(json_path);
- var testJson = new File.fromPath(testJsonPath);
+ var oldJson = new File(json_path);
+ var testJson = new File(testJsonPath);
tearDown(() {
// Clean up.
« no previous file with comments | « tools/dom/docs/lib/docs.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698