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

Side by Side Diff: pkg/analysis_server/test/plugin/set_analysis_domain_test.dart

Issue 2884593003: Reverse the sense of the flag to make it easier to find test that need to be converted (Closed)
Patch Set: Created 3 years, 7 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) 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/plugin/analysis/analysis_domain.dart'; 7 import 'package:analysis_server/plugin/analysis/analysis_domain.dart';
8 import 'package:analysis_server/plugin/analysis/navigation/navigation.dart'; 8 import 'package:analysis_server/plugin/analysis/navigation/navigation.dart';
9 import 'package:analysis_server/plugin/analysis/navigation/navigation_core.dart' ; 9 import 'package:analysis_server/plugin/analysis/navigation/navigation_core.dart' ;
10 import 'package:analysis_server/plugin/analysis/occurrences/occurrences.dart'; 10 import 'package:analysis_server/plugin/analysis/occurrences/occurrences.dart';
(...skipping 23 matching lines...) Expand all
34 * notifications. 34 * notifications.
35 */ 35 */
36 @reflectiveTest 36 @reflectiveTest
37 class SetAnalysisDomainTest extends AbstractAnalysisTest { 37 class SetAnalysisDomainTest extends AbstractAnalysisTest {
38 final Set<String> parsedUnitFiles = new Set<String>(); 38 final Set<String> parsedUnitFiles = new Set<String>();
39 39
40 AnalysisNavigationParams navigationParams; 40 AnalysisNavigationParams navigationParams;
41 AnalysisOccurrencesParams occurrencesParams; 41 AnalysisOccurrencesParams occurrencesParams;
42 42
43 @override 43 @override
44 bool get enableNewAnalysisDriver => false;
45
46 @override
44 void addServerPlugins(List<Plugin> plugins) { 47 void addServerPlugins(List<Plugin> plugins) {
45 var plugin = new TestSetAnalysisDomainPlugin(this); 48 var plugin = new TestSetAnalysisDomainPlugin(this);
46 plugins.add(plugin); 49 plugins.add(plugin);
47 } 50 }
48 51
49 @override 52 @override
50 void processNotification(Notification notification) { 53 void processNotification(Notification notification) {
51 if (notification.event == ANALYSIS_NAVIGATION) { 54 if (notification.event == ANALYSIS_NAVIGATION) {
52 var params = new AnalysisNavigationParams.fromNotification(notification); 55 var params = new AnalysisNavigationParams.fromNotification(notification);
53 if (params.file == testFile) { 56 if (params.file == testFile) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 expect(result.value, isNotNull); 157 expect(result.value, isNotNull);
155 Source source = result.target.source; 158 Source source = result.target.source;
156 test.parsedUnitFiles.add(source.fullName); 159 test.parsedUnitFiles.add(source.fullName);
157 domain.scheduleNotification( 160 domain.scheduleNotification(
158 result.context, source, AnalysisService.NAVIGATION); 161 result.context, source, AnalysisService.NAVIGATION);
159 domain.scheduleNotification( 162 domain.scheduleNotification(
160 result.context, source, AnalysisService.OCCURRENCES); 163 result.context, source, AnalysisService.OCCURRENCES);
161 }); 164 });
162 } 165 }
163 } 166 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698