anchor.diff:        new Path(dartPath), libPath,
         options: const <String>['--categories=Client,Server', '--minify'])
     .then((jsCode) {
  -    if (jsCode != null) writeString(new File(jsPath), jsCode);
  +    if (jsCode == null) throw new StateError("No javascript was generated.");
  +    writeString(new File(jsPath), jsCode);
     });
   }
   
  
positive.code: 
      var fileBuilder = new pathos.Builder(style: pathos.Style.url);
  
      var clientDir = fileBuilder.join(
          'file:///',
          fileBuilder.relative(
            fileBuilder.join(normalizedDartdocPath, 'lib', 'src', 'client'),
            from: tmpPath));
  
      writeString(new File(filePath),
          '''library client;
          import 'dart:html';
          import 'dart:json';
          import '${fileBuilder.join(clientDir, 'client-shared.dart')}';
          import '${fileBuilder.join(clientDir, 'dropdown.dart')}';
  
          main() {
            setup();
  
negative.code: 
    /// Gets the path to the dartdoc directory normalized for running in different
    /// places.
    String get normalizedDartdocPath => pathos.absolute(runningFromSdk ?
        pathos.join(sdkDir, 'lib', '_internal', 'dartdoc') :
        dartdocPath.toString());
  
    void docNavigationDart() {
      var tmpDir = new Directory(tmpPath);
  