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

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

Issue 8372056: Fix file test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/FileTest.dart
diff --git a/tests/standalone/src/FileTest.dart b/tests/standalone/src/FileTest.dart
index 4660c42c5e26a41c26abe45858d4378120080c3e..ca6a8ccd81c86c5b27a2f256427e1fa5d9bb773f 100644
--- a/tests/standalone/src/FileTest.dart
+++ b/tests/standalone/src/FileTest.dart
@@ -44,8 +44,8 @@ class FileTest {
Expect.equals(42, bytesRead);
input.close();
// Write the contents of the file just read into another file.
- String outFilename = getFilename("tests/vm/data/fixed_length_file_out");
- file = new File(outFilename);
+ String outFilename = getFilename("tests/vm/data/fixed_length_file");
+ file = new File(outFilename + "_out");
OutputStream output = file.openOutputStream();
bool writeDone = output.writeFrom(buffer1, 0, 42);
Expect.equals(true, writeDone);
@@ -138,8 +138,8 @@ class FileTest {
file.closeHandler = () {
// Write the contents of the file just read into another file.
String outFilenameBase =
- getFilename("tests/vm/data/fixed_length_file_out");
- file = new File(outFilenameBase);
+ getFilename("tests/vm/data/fixed_length_file");
+ file = new File(outFilenameBase + "_out");
file.errorHandler = (s) {
Expect.fail("No errors expected");
};
@@ -196,8 +196,8 @@ class FileTest {
Expect.equals(42, bytes_read);
file.closeSync();
// Write the contents of the file just read into another file.
- String outFilenameBase = getFilename("tests/vm/data/fixed_length_file_out");
- file = new File(outFilenameBase);
+ String outFilenameBase = getFilename("tests/vm/data/fixed_length_file");
+ file = new File(outFilenameBase + "_out");
file.openSync(true);
file.writeListSync(buffer1, 0, bytes_read);
file.closeSync();
@@ -289,8 +289,8 @@ class FileTest {
static int testCloseException() {
bool exceptionCaught = false;
bool wrongExceptionCaught = false;
- String filename = getFilename("tests/vm/data/fixed_length_file_out");
- File input = new File(filename);
+ String filename = getFilename("tests/vm/data/fixed_length_file");
+ File input = new File(filename + "_out");
input.openSync(true);
input.closeSync();
try {
@@ -381,8 +381,8 @@ class FileTest {
static int testCloseExceptionStream() {
bool exceptionCaught = false;
bool wrongExceptionCaught = false;
- String filename = getFilename("tests/vm/data/fixed_length_file_out");
- File file = new File(filename);
+ String filename = getFilename("tests/vm/data/fixed_length_file");
+ File file = new File(filename + "_out");
FileInputStream input = file.openInputStream();
input.close();
try {
@@ -415,8 +415,8 @@ class FileTest {
static int testBufferOutOfBoundsException() {
bool exceptionCaught = false;
bool wrongExceptionCaught = false;
- String filename = getFilename("tests/vm/data/fixed_length_file_out");
- File file = new File(filename);
+ String filename = getFilename("tests/vm/data/fixed_length_file");
+ File file = new File(filename + "_out");
file.openSync(true);
try {
List<int> buffer = new List<int>(10);
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698