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

Unified Diff: pkg/analysis_server/test/analysis/notification_analyzedFiles_test.dart

Issue 1478513002: Use async/await in all analysis domain tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/analysis/notification_analyzedFiles_test.dart
diff --git a/pkg/analysis_server/test/analysis/notification_analyzedFiles_test.dart b/pkg/analysis_server/test/analysis/notification_analyzedFiles_test.dart
index 13c50736daa011b623f15715c908c47d594f678b..0ce9e1642d04b80e6442ea2db42dd6d1ad0cacc7 100644
--- a/pkg/analysis_server/test/analysis/notification_analyzedFiles_test.dart
+++ b/pkg/analysis_server/test/analysis/notification_analyzedFiles_test.dart
@@ -49,24 +49,21 @@ class AnalysisNotificationAnalyzedFilesTest extends AbstractAnalysisTest {
createProject();
}
- test_afterAnalysis() {
+ test_afterAnalysis() async {
addTestFile('''
class A {}
''');
- return waitForTasksFinished().then((_) {
- return prepareAnalyzedFiles().then((_) {
- assertHasFile(testFile);
- });
- });
+ await waitForTasksFinished();
+ await prepareAnalyzedFiles();
+ assertHasFile(testFile);
}
- test_beforeAnalysis() {
+ test_beforeAnalysis() async {
addTestFile('''
class A {}
''');
- return prepareAnalyzedFiles().then((_) {
- assertHasFile(testFile);
- });
+ await prepareAnalyzedFiles();
+ assertHasFile(testFile);
}
test_insignificant_change() async {
« no previous file with comments | « pkg/analysis_server/test/analysis/get_hover_test.dart ('k') | pkg/analysis_server/test/analysis/notification_errors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698