| Index: tests/standalone/io/file_invalid_arguments_test.dart
|
| diff --git a/tests/standalone/io/file_invalid_arguments_test.dart b/tests/standalone/io/file_invalid_arguments_test.dart
|
| index 73f8b98c7489fd1a5d41f6397e545ae4ead5f1f4..674b789f4156c29fa6326b9b3f457e2b3acd287b 100644
|
| --- a/tests/standalone/io/file_invalid_arguments_test.dart
|
| +++ b/tests/standalone/io/file_invalid_arguments_test.dart
|
| @@ -11,12 +11,12 @@ class FileTest {
|
| file.openSync();
|
| Expect.fail('exception expected');
|
| } catch (e) {
|
| - Expect.isTrue(e is IllegalArgumentException);
|
| + Expect.isTrue(e is ArgumentError);
|
| }
|
|
|
| var openFuture = file.open(FileMode.READ);
|
| openFuture.handleException((e) {
|
| - Expect.isTrue(e is IllegalArgumentException);
|
| + Expect.isTrue(e is ArgumentError);
|
| return true;
|
| });
|
| openFuture.then((opened) {
|
| @@ -30,12 +30,12 @@ class FileTest {
|
| file.existsSync();
|
| Expect.fail('exception expected');
|
| } catch (e) {
|
| - Expect.isTrue(e is IllegalArgumentException);
|
| + Expect.isTrue(e is ArgumentError);
|
| }
|
|
|
| var existsFuture = file.exists();
|
| existsFuture.handleException((e) {
|
| - Expect.isTrue(e is IllegalArgumentException);
|
| + Expect.isTrue(e is ArgumentError);
|
| return true;
|
| });
|
| existsFuture.then((bool) {
|
| @@ -49,12 +49,12 @@ class FileTest {
|
| file.createSync();
|
| Expect.fail('exception expected');
|
| } catch (e) {
|
| - Expect.isTrue(e is IllegalArgumentException);
|
| + Expect.isTrue(e is ArgumentError);
|
| }
|
|
|
| var createFuture = file.create();
|
| createFuture.handleException((e) {
|
| - Expect.isTrue(e is IllegalArgumentException);
|
| + Expect.isTrue(e is ArgumentError);
|
| return true;
|
| });
|
| createFuture.then((ignore) => Expect.fail('non-string name exists'));
|
| @@ -167,12 +167,12 @@ class FileTest {
|
| file.fullPathSync();
|
| Expect.fail('exception expected');
|
| } catch (e) {
|
| - Expect.isTrue(e is IllegalArgumentException);
|
| + Expect.isTrue(e is ArgumentError);
|
| }
|
|
|
| var fullPathFuture = file.fullPath();
|
| fullPathFuture.handleException((e) {
|
| - Expect.isTrue(e is IllegalArgumentException);
|
| + Expect.isTrue(e is ArgumentError);
|
| return true;
|
| });
|
| fullPathFuture.then((path) {
|
|
|