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

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

Issue 11570005: Remove old #import, #source, and #library syntax from tests/standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 // Dart test program for testing error handling in file I/O. 5 // Dart test program for testing error handling in file I/O.
6 6
7 #import("dart:io"); 7 import "dart:io";
8 #import("dart:isolate"); 8 import "dart:isolate";
9 9
10 Directory tempDir() { 10 Directory tempDir() {
11 return new Directory('').createTempSync(); 11 return new Directory('').createTempSync();
12 } 12 }
13 13
14 14
15 bool checkNonExistentFileException(e, str) { 15 bool checkNonExistentFileException(e, str) {
16 Expect.isTrue(e is FileIOException); 16 Expect.isTrue(e is FileIOException);
17 Expect.isTrue(e.osError != null); 17 Expect.isTrue(e.osError != null);
18 Expect.isTrue(e.toString().indexOf(str) != -1); 18 Expect.isTrue(e.toString().indexOf(str) != -1);
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 testReadAsBytesNonExistent(); 477 testReadAsBytesNonExistent();
478 testReadAsTextNonExistent(); 478 testReadAsTextNonExistent();
479 testReadAsLinesNonExistent(); 479 testReadAsLinesNonExistent();
480 testWriteByteToReadOnlyFile(); 480 testWriteByteToReadOnlyFile();
481 testWriteListToReadOnlyFile(); 481 testWriteListToReadOnlyFile();
482 testTruncateReadOnlyFile(); 482 testTruncateReadOnlyFile();
483 testOperateOnClosedFile(); 483 testOperateOnClosedFile();
484 testRepeatedlyCloseFile(); 484 testRepeatedlyCloseFile();
485 testRepeatedlyCloseFileSync(); 485 testRepeatedlyCloseFileSync();
486 } 486 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698