OLD | NEW |
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 #import("dart:io"); | 5 #import("dart:io"); |
6 | 6 |
7 class FileTest { | 7 class FileTest { |
8 static void testOpenInvalidArgs(name) { | 8 static void testOpenInvalidArgs(name) { |
9 var file = new File(name); | 9 var file = new File(name); |
10 try { | 10 try { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 FileTest.testCreateInvalidArgs(0); | 186 FileTest.testCreateInvalidArgs(0); |
187 FileTest.testReadListInvalidArgs(12, 0, 1); | 187 FileTest.testReadListInvalidArgs(12, 0, 1); |
188 FileTest.testReadListInvalidArgs(new List(10), '0', 1); | 188 FileTest.testReadListInvalidArgs(new List(10), '0', 1); |
189 FileTest.testReadListInvalidArgs(new List(10), 0, '1'); | 189 FileTest.testReadListInvalidArgs(new List(10), 0, '1'); |
190 FileTest.testWriteByteInvalidArgs('asdf'); | 190 FileTest.testWriteByteInvalidArgs('asdf'); |
191 FileTest.testWriteListInvalidArgs(12, 0, 1); | 191 FileTest.testWriteListInvalidArgs(12, 0, 1); |
192 FileTest.testWriteListInvalidArgs(new List(10), '0', 1); | 192 FileTest.testWriteListInvalidArgs(new List(10), '0', 1); |
193 FileTest.testWriteListInvalidArgs(new List(10), 0, '1'); | 193 FileTest.testWriteListInvalidArgs(new List(10), 0, '1'); |
194 FileTest.testFullPathInvalidArgs(12); | 194 FileTest.testFullPathInvalidArgs(12); |
195 } | 195 } |
OLD | NEW |