| Index: tests/standalone/src/FileInvalidArgumentsTest.dart
|
| diff --git a/tests/standalone/src/FileInvalidArgumentsTest.dart b/tests/standalone/src/FileInvalidArgumentsTest.dart
|
| index f956ee3fb42ca317352c2ced456d160853bab950..763b9fd2170407e7a76bd0b0e2581bfc388010a4 100644
|
| --- a/tests/standalone/src/FileInvalidArgumentsTest.dart
|
| +++ b/tests/standalone/src/FileInvalidArgumentsTest.dart
|
| @@ -15,10 +15,10 @@ class FileTest {
|
| Expect.isTrue(e.toString().contains('open file'));
|
| }
|
|
|
| - file.errorHandler = (s) {
|
| + file.onError = (s) {
|
| Expect.isTrue(s.contains('open file'));
|
| };
|
| - file.openHandler = () {
|
| + file.onOpen = () {
|
| Expect.fail('non-string name open');
|
| };
|
| file.open();
|
| @@ -34,10 +34,10 @@ class FileTest {
|
| Expect.isTrue(e.toString().contains('is not a string'));
|
| }
|
|
|
| - file.errorHandler = (s) {
|
| + file.onError = (s) {
|
| Expect.isTrue(s.contains('is not a string'));
|
| };
|
| - file.existsHandler = (bool) {
|
| + file.onExists = (bool) {
|
| Expect.fail('non-string name exists');
|
| };
|
| file.exists();
|
| @@ -53,10 +53,10 @@ class FileTest {
|
| Expect.isTrue(e.toString().contains('Cannot create file'));
|
| }
|
|
|
| - file.errorHandler = (s) {
|
| + file.onError = (s) {
|
| Expect.isTrue(s.contains('Cannot create file'));
|
| };
|
| - file.createHandler = (created) {
|
| + file.onCreate = (created) {
|
| Expect.fail('non-string name exists');
|
| };
|
| file.create();
|
| @@ -74,15 +74,15 @@ class FileTest {
|
| }
|
|
|
| var errors = 0;
|
| - file.errorHandler = (s) {
|
| + file.onError = (s) {
|
| errors++;
|
| Expect.isTrue(s.contains('Invalid arguments'));
|
| };
|
| - file.readListHandler = (bytes) {
|
| + file.onReadList = (bytes) {
|
| Expect.fail('read list invalid arguments');
|
| };
|
| file.readList(buffer, offset, length);
|
| - file.closeHandler = () {
|
| + file.onClose = () {
|
| Expect.equals(1, errors);
|
| };
|
| file.close();
|
| @@ -100,16 +100,16 @@ class FileTest {
|
| }
|
|
|
| var errors = 0;
|
| - file.errorHandler = (s) {
|
| + file.onError = (s) {
|
| errors++;
|
| Expect.isTrue(s.contains('Invalid argument'));
|
| };
|
| var calls = 0;
|
| - file.noPendingWriteHandler = () {
|
| + file.onNoPendingWrite = () {
|
| if (++calls > 1) Expect.fail('write list invalid argument');
|
| };
|
| file.writeByte(value);
|
| - file.closeHandler = () {
|
| + file.onClose = () {
|
| Expect.equals(1, errors);
|
| };
|
| file.close();
|
| @@ -127,16 +127,16 @@ class FileTest {
|
| }
|
|
|
| var errors = 0;
|
| - file.errorHandler = (s) {
|
| + file.onError = (s) {
|
| errors++;
|
| Expect.isTrue(s.contains('Invalid arguments'));
|
| };
|
| var calls = 0;
|
| - file.noPendingWriteHandler = () {
|
| + file.onNoPendingWrite = () {
|
| if (++calls > 1) Expect.fail('write string invalid argument');
|
| };
|
| file.writeList(buffer, offset, bytes);
|
| - file.closeHandler = () {
|
| + file.onClose = () {
|
| Expect.equals(1, errors);
|
| };
|
| file.close();
|
| @@ -155,16 +155,16 @@ class FileTest {
|
| }
|
|
|
| var errors = 0;
|
| - file.errorHandler = (s) {
|
| + file.onError = (s) {
|
| errors++;
|
| Expect.isTrue(s.contains('writeString failed'));
|
| };
|
| var calls = 0;
|
| - file.noPendingWriteHandler = () {
|
| + file.onNoPendingWrite = () {
|
| if (++calls > 1) Expect.fail('write list invalid argument');
|
| };
|
| file.writeString(string);
|
| - file.closeHandler = () {
|
| + file.onClose = () {
|
| Expect.equals(1, errors);
|
| };
|
| file.close();
|
| @@ -180,10 +180,10 @@ class FileTest {
|
| Expect.isTrue(e.toString().contains('fullPath failed'));
|
| }
|
|
|
| - file.errorHandler = (s) {
|
| + file.onError = (s) {
|
| Expect.isTrue(s.contains('fullPath failed'));
|
| };
|
| - file.fullPathHandler = (path) {
|
| + file.onFullPath = (path) {
|
| Expect.fail('full path invalid argument');
|
| };
|
| file.fullPath();
|
|
|