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

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

Issue 14052010: Fix broken test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 file I/O. 5 // Dart test program for testing file I/O.
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 import 'dart:io'; 10 import 'dart:io';
11 import 'dart:isolate'; 11 import 'dart:isolate';
12 12
13 class MyListOfOneElement 13 class MyListOfOneElement
14 extends Object with ListMixin<int>, UnmodifiableListMixin { 14 extends Object with ListMixin<int> implements List<int> {
15 int _value; 15 int _value;
16 MyListOfOneElement(this._value); 16 MyListOfOneElement(this._value);
17 int get length => 1; 17 int get length => 1;
18 operator [](int index) => _value; 18 operator [](int index) => _value;
kustermann 2013/04/24 13:09:49 I'd throw if 'index != 0' in 'operator[]'.
Søren Gjesse 2013/04/24 13:11:53 Good point, done.
19 void set length(int index) { throw "Unsupported"; }
20 operator []=(int index, value) { throw "Unsupported"; }
19 } 21 }
20 22
21 class FileTest { 23 class FileTest {
22 static Directory tempDirectory; 24 static Directory tempDirectory;
23 static int numLiveAsyncTests = 0; 25 static int numLiveAsyncTests = 0;
24 static ReceivePort port; 26 static ReceivePort port;
25 27
26 static void asyncTestStarted() { ++numLiveAsyncTests; } 28 static void asyncTestStarted() { ++numLiveAsyncTests; }
27 static void asyncTestDone(String name) { 29 static void asyncTestDone(String name) {
28 --numLiveAsyncTests; 30 --numLiveAsyncTests;
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 testDirectorySync(); 1284 testDirectorySync();
1283 testWriteStringUtf8(); 1285 testWriteStringUtf8();
1284 testWriteStringUtf8Sync(); 1286 testWriteStringUtf8Sync();
1285 }); 1287 });
1286 } 1288 }
1287 } 1289 }
1288 1290
1289 main() { 1291 main() {
1290 FileTest.testMain(); 1292 FileTest.testMain();
1291 } 1293 }
OLDNEW
« 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