anchor.diff:            }
             openedFile2.closeSync();
             file2.deleteSync();
  +          asyncTestDone("testWriteVariousLists");
           };
         };
         file.errorHandler = (s) {
  
positive.code: 
    static void createTempDirectory(Function doNext) {
      tempDirectory = new Directory('');
      tempDirectory.createTempHandler = doNext;
      tempDirectory.createTemp();
    }
  
    static void deleteTempDirectory() {
      tempDirectory.deleteSync();
    }
  
    // Test for file read functionality.
  
negative.code:   }
  
    static void testDirectory() {
      asyncTestStarted();
  
      // Port to verify that the test completes.
      var port = new ReceivePort.singleShot();
      port.receive((message, replyTo) {
        Expect.equals(1, message);
        asyncTestDone("testDirectory");
      });
  
      var tempDir = tempDirectory.path;
      var file = new File("${tempDir}/testDirectory");
      var errors = 0;
      file.directory();
      file.directoryHandler = (d) => Expect.fail("non-existing file");
  