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

Side by Side Diff: pkg/analysis_server/test/integration/search_domain_int_test.dart

Issue 453263002: Fix analysis server to only send SERVER_STATUS when subscribed to. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library test.integration.search.domain; 5 library test.integration.search.domain;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_testing/reflective_tests.dart'; 9 import 'package:analysis_testing/reflective_tests.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 /** 63 /**
64 * Pathname of the main file to run tests in. 64 * Pathname of the main file to run tests in.
65 */ 65 */
66 String pathname; 66 String pathname;
67 67
68 test_getTypeHierarchy() { 68 test_getTypeHierarchy() {
69 pathname = sourcePath('test.dart'); 69 pathname = sourcePath('test.dart');
70 // Write a dummy file which will be overridden by tests using 70 // Write a dummy file which will be overridden by tests using
71 // [sendAnalysisUpdateContent]. 71 // [sendAnalysisUpdateContent].
72 writeFile(pathname, '// dummy'); 72 writeFile(pathname, '// dummy');
73 standardAnalysisRoot(); 73 standardAnalysisSetup();
74 74
75 // Run all the getTypeHierarchy tests at once so that the server can take 75 // Run all the getTypeHierarchy tests at once so that the server can take
76 // advantage of incremental analysis and the test doesn't time out. 76 // advantage of incremental analysis and the test doesn't time out.
77 List tests = [getTypeHierarchy_classElement, getTypeHierarchy_displayName, 77 List tests = [getTypeHierarchy_classElement, getTypeHierarchy_displayName,
78 getTypeHierarchy_memberElement, getTypeHierarchy_superclass, 78 getTypeHierarchy_memberElement, getTypeHierarchy_superclass,
79 getTypeHierarchy_interfaces, getTypeHierarchy_mixins, 79 getTypeHierarchy_interfaces, getTypeHierarchy_mixins,
80 getTypeHierarchy_subclasses, getTypeHierarchy_badTarget, 80 getTypeHierarchy_subclasses, getTypeHierarchy_badTarget,
81 getTypeHierarchy_functionTarget]; 81 getTypeHierarchy_functionTarget];
82 return Future.forEach(tests, (test) => test()); 82 return Future.forEach(tests, (test) => test());
83 } 83 }
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } else { 275 } else {
276 return new HierarchyResults(result); 276 return new HierarchyResults(result);
277 } 277 }
278 }); 278 });
279 } 279 }
280 } 280 }
281 281
282 main() { 282 main() {
283 runReflectiveTests(SearchDomainIntegrationTest); 283 runReflectiveTests(SearchDomainIntegrationTest);
284 } 284 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698