anchor.diff:  
     testListener.close();
   
  -  if (chromeProcess != null) {
  -      if (chromeProcess != null) {
  -        chromeProcess.kill();
  -      }
  +  // Give the chrome process a little time to shut down on its own.
  +  new Timer(new Duration(seconds: CHROME_SHUTDOWN_TIMEOUT), () {
  +    if (chromeProcess != null) {
  +        if (chromeProcess != null) {
  +          chromeProcess.kill();
  +        }
  +        _doExit(exitCode);
  +    } else {
         _doExit(exitCode);
  -  } else {
  -    _doExit(exitCode);
  -  }
  +    }
  +  });
   }
   
   void _streamClosed() {
  
positive.code: Directory tempDir;
  
  final int TEST_TIMEOUT = 10;
  
  void main() {
    if (!new Directory('app').existsSync()) {
  
negative.code: }
  
  void _doExit(int code) {
    new Timer(new Duration(seconds: EXIT_PROCESS_TIMEOUT), () {
      if (tempDir != null) {
        try {
          tempDir.deleteSync(recursive: true);
  