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

Side by Side Diff: pkg/analysis_server/test/analysis/notification_analyzedFiles_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/protocol/protocol.dart'; 7 import 'package:analysis_server/protocol/protocol.dart';
8 import 'package:analysis_server/protocol/protocol_generated.dart'; 8 import 'package:analysis_server/protocol/protocol_generated.dart';
9 import 'package:analysis_server/src/constants.dart'; 9 import 'package:analysis_server/src/constants.dart';
10 import 'package:test/test.dart'; 10 import 'package:test/test.dart';
(...skipping 26 matching lines...) Expand all
37 void processNotification(Notification notification) { 37 void processNotification(Notification notification) {
38 if (notification.event == ANALYSIS_ANALYZED_FILES) { 38 if (notification.event == ANALYSIS_ANALYZED_FILES) {
39 AnalysisAnalyzedFilesParams params = 39 AnalysisAnalyzedFilesParams params =
40 new AnalysisAnalyzedFilesParams.fromNotification(notification); 40 new AnalysisAnalyzedFilesParams.fromNotification(notification);
41 analyzedFilesReceived = true; 41 analyzedFilesReceived = true;
42 analyzedFiles = params.directories; 42 analyzedFiles = params.directories;
43 } 43 }
44 } 44 }
45 45
46 void setUp() { 46 void setUp() {
47 enableNewAnalysisDriver = true;
48 generateSummaryFiles = true; 47 generateSummaryFiles = true;
49 super.setUp(); 48 super.setUp();
50 createProject(); 49 createProject();
51 } 50 }
52 51
53 test_afterAnalysis() async { 52 test_afterAnalysis() async {
54 addTestFile(''' 53 addTestFile('''
55 class A {} 54 class A {}
56 '''); 55 ''');
57 await waitForTasksFinished(); 56 await waitForTasksFinished();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 analyzedFilesReceived = false; 105 analyzedFilesReceived = false;
107 modifyTestFile('import "/foo.dart";'); 106 modifyTestFile('import "/foo.dart";');
108 await prepareAnalyzedFiles(); 107 await prepareAnalyzedFiles();
109 assertHasFile('/foo.dart'); 108 assertHasFile('/foo.dart');
110 } 109 }
111 110
112 void unsubscribeAnalyzedFiles() { 111 void unsubscribeAnalyzedFiles() {
113 removeGeneralAnalysisSubscription(GeneralAnalysisService.ANALYZED_FILES); 112 removeGeneralAnalysisSubscription(GeneralAnalysisService.ANALYZED_FILES);
114 } 113 }
115 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698