anchor.diff:      AnalysisContext barContext = server.getAnalysisContextForSource(barSource);
       expect(barContext, isNotNull);
       expect(fooContext, isNot(same(barContext)));
  -    return pumpEventQueue(40).then((_) {
  +    return server.onAnalysisComplete.then((_) {
         expect(server.statusAnalyzing, isFalse);
         // Make sure getAnalysisContext returned the proper context for each.
         expect(fooContext.getKindOf(fooSource), SourceKind.LIBRARY);
  
positive.code: ''');
      Source barSource = bar.createSource();
      server.setAnalysisRoots('0', ['/foo', '/bar'], [], {});
      return pumpEventQueue(40).then((_) {
        expect(server.statusAnalyzing, isFalse);
        // Make sure getAnalysisContext returns the proper context for each.
        AnalysisContext fooContext =
  
negative.code:     File bar = resourceProvider.newFile('/bar/bar.dart', 'library lib;');
      Source barSource = bar.createSource();
      server.setAnalysisRoots('0', ['/foo', '/bar'], [], {});
      return server.onAnalysisComplete.then((_) {
        expect(server.statusAnalyzing, isFalse);
        // Make sure getAnalysisContext returns the proper context for each.
        AnalysisContext fooContext =
  