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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Test the Path class in dart:io. 5 // Test the Path class in dart:io.
6 6
7 import "package:expect/expect.dart";
7 import "dart:io"; 8 import "dart:io";
8 9
9 void main() { 10 void main() {
10 testBaseFunctions(); 11 testBaseFunctions();
11 testRaw(); 12 testRaw();
12 testCanonicalize(); 13 testCanonicalize();
13 testJoinAppend(); 14 testJoinAppend();
14 testRelativeTo(); 15 testRelativeTo();
15 testWindowsShare(); 16 testWindowsShare();
16 } 17 }
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 Expect.isTrue(canonical.toString().startsWith('/share/a')); 295 Expect.isTrue(canonical.toString().startsWith('/share/a'));
295 Expect.isTrue(canonical.toNativePath().startsWith(r'\\share\a')); 296 Expect.isTrue(canonical.toNativePath().startsWith(r'\\share\a'));
296 Expect.listEquals(['share', 'a', 'c'], canonical.segments()); 297 Expect.listEquals(['share', 'a', 'c'], canonical.segments());
297 var appended = canonical.append('d'); 298 var appended = canonical.append('d');
298 Expect.isTrue(appended.isAbsolute); 299 Expect.isTrue(appended.isAbsolute);
299 Expect.isTrue(appended.isWindowsShare); 300 Expect.isTrue(appended.isWindowsShare);
300 var directoryPath = canonical.directoryPath; 301 var directoryPath = canonical.directoryPath;
301 Expect.isTrue(directoryPath.isAbsolute); 302 Expect.isTrue(directoryPath.isAbsolute);
302 Expect.isTrue(directoryPath.isWindowsShare); 303 Expect.isTrue(directoryPath.isWindowsShare);
303 } 304 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698