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

Unified Diff: tests/standalone/src/io/FileTest.dart

Issue 10054005: Remove check whether async has been used from File objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « runtime/bin/file_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/FileTest.dart
diff --git a/tests/standalone/src/io/FileTest.dart b/tests/standalone/src/io/FileTest.dart
index c3b808c48b9e6057e6cff9fd6baaf6fcc4d99bc8..6e5a8cd647e0189200bc3edaead611f223c72bde 100644
--- a/tests/standalone/src/io/FileTest.dart
+++ b/tests/standalone/src/io/FileTest.dart
@@ -836,20 +836,6 @@ class FileTest {
file.deleteSync();
}
- static void testMixedSyncAndAsync() {
- var name = getFilename("tests/vm/data/fixed_length_file");
- var f = new File(name);
- f.onError = (e) => Expect.fail("No errors expected: $e");
- f.exists((exists) {
- try {
- f.existsSync();
- Expect.fail("Expected exception");
- } catch (var e) {
- Expect.isTrue(e is FileIOException);
- }
- });
- }
-
static void testOpenDirectoryAsFile() {
var f = new File('.');
f.open(FileMode.READ, (r) => Expect.fail('Directory opened as file'));
@@ -1056,7 +1042,6 @@ class FileTest {
testLengthSync();
testPosition();
testPositionSync();
- testMixedSyncAndAsync();
testOpenDirectoryAsFile();
testOpenDirectoryAsFileSync();
testReadAsBytes();
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698