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

Unified Diff: pkg/analysis_server/test/services/refactoring/convert_getter_to_method_test.dart

Issue 2614033003: Make subclasses of AbstractContextTest asynchronous. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/services/refactoring/convert_getter_to_method_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/convert_getter_to_method_test.dart b/pkg/analysis_server/test/services/refactoring/convert_getter_to_method_test.dart
index 9b74f44ac938583b0edea8b9e1a1fc20f3b87454..859f1eba4d45623e2b236730a05a75ed33631bb5 100644
--- a/pkg/analysis_server/test/services/refactoring/convert_getter_to_method_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/convert_getter_to_method_test.dart
@@ -24,8 +24,8 @@ main() {
class ConvertGetterToMethodTest extends RefactoringTest {
ConvertGetterToMethodRefactoring refactoring;
- test_change_function() {
- indexTestUnit('''
+ test_change_function() async {
+ await indexTestUnit('''
int get test => 42;
main() {
var a = test;
@@ -43,8 +43,8 @@ main() {
''');
}
- test_change_method() {
- indexTestUnit('''
+ test_change_method() async {
+ await indexTestUnit('''
class A {
int get test => 1;
}
@@ -88,15 +88,15 @@ main(A a, B b, C c, D d) {
''');
}
- test_change_multipleFiles() {
- indexUnit(
+ test_change_multipleFiles() async {
+ await indexUnit(
'/other.dart',
r'''
class A {
int get test => 1;
}
''');
- indexTestUnit('''
+ await indexTestUnit('''
import 'other.dart';
class B extends A {
int get test => 2;
@@ -120,8 +120,8 @@ main(A a, B b) {
''');
}
- test_checkInitialConditions_syntheticGetter() {
- indexTestUnit('''
+ test_checkInitialConditions_syntheticGetter() async {
+ await indexTestUnit('''
int test = 42;
main() {
}

Powered by Google App Engine
This is Rietveld 408576698