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

Side by Side Diff: tests/standalone/src/DirectoryTest.dart

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 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 // Directory listing test. 5 // Directory listing test.
6 6
7 #import("dart:io"); 7 #import("dart:io");
8 #import("dart:isolate");
8 9
9 class DirectoryTest { 10 class DirectoryTest {
10 static void testListing() { 11 static void testListing() {
11 bool listedDir = false; 12 bool listedDir = false;
12 bool listedFile = false; 13 bool listedFile = false;
13 14
14 Directory directory = new Directory(""); 15 Directory directory = new Directory("");
15 directory.createTempSync(); 16 directory.createTempSync();
16 Directory subDirectory = new Directory("${directory.path}/subdir"); 17 Directory subDirectory = new Directory("${directory.path}/subdir");
17 Expect.isFalse(subDirectory.existsSync()); 18 Expect.isFalse(subDirectory.existsSync());
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 dir.createTemp(); 477 dir.createTemp();
477 } 478 }
478 479
479 480
480 main() { 481 main() {
481 DirectoryTest.testMain(); 482 DirectoryTest.testMain();
482 NestedTempDirectoryTest.testMain(); 483 NestedTempDirectoryTest.testMain();
483 testCreateTempErrorSync(); 484 testCreateTempErrorSync();
484 testCreateTempError(); 485 testCreateTempError();
485 } 486 }
OLDNEW
« no previous file with comments | « tests/standalone/src/ChunkedStreamTest.dart ('k') | tests/standalone/src/EchoServerStreamTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698