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

Unified Diff: tests/standalone/io/file_test.dart

Issue 12314156: Fix errors in checked mode (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index 38012c7f2fd5364efa69c446960fa67b27d420a2..6f971389adcc8e714fe4ff341eae92ca8c3c9298 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -225,12 +225,12 @@ class FileTest {
static void testReadSync() {
// Read a file and check part of it's contents.
String filename = getFilename("bin/file_test.cc");
- RandomAccessFile file = (new File(filename)).openSync();
+ RandomAccessFile raf = (new File(filename)).openSync();
List<int> buffer = new List<int>(42);
int bytes_read = 0;
- bytes_read = file.readListSync(buffer, 0, 12);
+ bytes_read = raf.readListSync(buffer, 0, 12);
Expect.equals(12, bytes_read);
- bytes_read = file.readListSync(buffer, 12, 30);
+ bytes_read = raf.readListSync(buffer, 12, 30);
Expect.equals(30, bytes_read);
Expect.equals(47, buffer[0]); // represents '/' in the file.
Expect.equals(47, buffer[1]); // represents '/' in the file.
@@ -246,7 +246,7 @@ class FileTest {
Expect.equals(116, buffer[11]); // represents 't' in the file.
filename = getFilename("tests/vm/data/fixed_length_file");
- file = new File(filename);
+ File file = new File(filename);
int len = file.lengthSync();
Expect.equals(0, file.openSync().readSync(0).length);
Expect.equals(1, file.openSync().readSync(1).length);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698