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

Side by Side Diff: tests/standalone/io/link_async_test.dart

Issue 50413005: Reapply "Remove @deprecated features." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/link_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "dart:async"; 5 import "dart:async";
6 import "dart:io"; 6 import "dart:io";
7 7
8 import "package:async_helper/async_helper.dart"; 8 import "package:async_helper/async_helper.dart";
9 import "package:expect/expect.dart"; 9 import "package:expect/expect.dart";
10 import "package:path/path.dart"; 10 import "package:path/path.dart";
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 .then((_) => FutureExpect.isTrue(FileSystemEntity.identical( 97 .then((_) => FutureExpect.isTrue(FileSystemEntity.identical(
98 link, 98 link,
99 link))) 99 link)))
100 .then((_) => FutureExpect.isTrue(FileSystemEntity.identical( 100 .then((_) => FutureExpect.isTrue(FileSystemEntity.identical(
101 target, 101 target,
102 target))) 102 target)))
103 .then((_) => new Link(link).target()) 103 .then((_) => new Link(link).target())
104 .then((linkTarget) => FutureExpect.isTrue(FileSystemEntity.identical( 104 .then((linkTarget) => FutureExpect.isTrue(FileSystemEntity.identical(
105 target, 105 target,
106 linkTarget))) 106 linkTarget)))
107 .then((_) => new File(".").fullPath()) 107 .then((_) => new File(".").resolveSymbolicLinks())
108 .then((fullCurrentDir) => FutureExpect.isTrue(FileSystemEntity.identical( 108 .then((fullCurrentDir) => FutureExpect.isTrue(FileSystemEntity.identical(
109 ".", 109 ".",
110 fullCurrentDir))) 110 fullCurrentDir)))
111 .then((_) => FutureExpect.isTrue(FileSystemEntity.identical( 111 .then((_) => FutureExpect.isTrue(FileSystemEntity.identical(
112 createdFile, 112 createdFile,
113 createdFile))) 113 createdFile)))
114 .then((_) => FutureExpect.isFalse(FileSystemEntity.identical( 114 .then((_) => FutureExpect.isFalse(FileSystemEntity.identical(
115 createdFile, 115 createdFile,
116 createdDirectly))) 116 createdDirectly)))
117 .then((_) => FutureExpect.isTrue(FileSystemEntity.identical( 117 .then((_) => FutureExpect.isTrue(FileSystemEntity.identical(
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 } 313 }
314 314
315 main() { 315 main() {
316 asyncStart(); 316 asyncStart();
317 testCreate() 317 testCreate()
318 .then(testCreateLoopingLink) 318 .then(testCreateLoopingLink)
319 .then(testRename) 319 .then(testRename)
320 .then(testRelativeLinks) 320 .then(testRelativeLinks)
321 .then((_) => asyncEnd()); 321 .then((_) => asyncEnd());
322 } 322 }
OLDNEW
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/link_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698