Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: pkg/analysis_server/test/domain_diagnostic_test.dart

Issue 2946313003: Restore partial analysis of analysis options files (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:analysis_server/protocol/protocol_generated.dart'; 5 import 'package:analysis_server/protocol/protocol_generated.dart';
6 import 'package:analysis_server/src/domain_diagnostic.dart'; 6 import 'package:analysis_server/src/domain_diagnostic.dart';
7 import 'package:test/test.dart'; 7 import 'package:test/test.dart';
8 import 'package:test_reflective_loader/test_reflective_loader.dart'; 8 import 'package:test_reflective_loader/test_reflective_loader.dart';
9 9
10 import 'analysis_abstract.dart'; 10 import 'analysis_abstract.dart';
(...skipping 26 matching lines...) Expand all
37 var request = new DiagnosticGetDiagnosticsParams().toRequest('0'); 37 var request = new DiagnosticGetDiagnosticsParams().toRequest('0');
38 var response = handler.handleRequest(request); 38 var response = handler.handleRequest(request);
39 var result = new DiagnosticGetDiagnosticsResult.fromResponse(response); 39 var result = new DiagnosticGetDiagnosticsResult.fromResponse(response);
40 40
41 expect(result.contexts, hasLength(1)); 41 expect(result.contexts, hasLength(1));
42 42
43 ContextData context = result.contexts[0]; 43 ContextData context = result.contexts[0];
44 expect(context.name, '/project'); 44 expect(context.name, '/project');
45 expect(context.explicitFileCount, 1); /* test.dart */ 45 expect(context.explicitFileCount, 1); /* test.dart */
46 46
47 expect(context.implicitFileCount, 4); 47 expect(context.implicitFileCount, 5);
48 48
49 expect(context.workItemQueueLength, isNotNull); 49 expect(context.workItemQueueLength, isNotNull);
50 } 50 }
51 51
52 test_getDiagnostics_noRoot() async { 52 test_getDiagnostics_noRoot() async {
53 var request = new DiagnosticGetDiagnosticsParams().toRequest('0'); 53 var request = new DiagnosticGetDiagnosticsParams().toRequest('0');
54 var response = handler.handleRequest(request); 54 var response = handler.handleRequest(request);
55 var result = new DiagnosticGetDiagnosticsResult.fromResponse(response); 55 var result = new DiagnosticGetDiagnosticsResult.fromResponse(response);
56 expect(result.contexts, isEmpty); 56 expect(result.contexts, isEmpty);
57 } 57 }
58 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698