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

Unified Diff: pkg/analysis_server/test/services/correction/status_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/correction/status_test.dart
diff --git a/pkg/analysis_server/test/services/correction/status_test.dart b/pkg/analysis_server/test/services/correction/status_test.dart
index 9c9169e2637ee5239a9c754bb6f77b4b56e854dc..17759878d5e3da80c7d8c4133a26ef78f673c20a 100644
--- a/pkg/analysis_server/test/services/correction/status_test.dart
+++ b/pkg/analysis_server/test/services/correction/status_test.dart
@@ -26,8 +26,8 @@ main() {
@reflectiveTest
class RefactoringLocationTest extends AbstractSingleUnitTest {
- void test_createLocation_forElement() {
- resolveTestUnit('class MyClass {}');
+ test_createLocation_forElement() async {
+ await resolveTestUnit('class MyClass {}');
Element element = findElement('MyClass');
// check
Location location = newLocation_fromElement(element);
@@ -38,8 +38,8 @@ class RefactoringLocationTest extends AbstractSingleUnitTest {
expect(location.startColumn, 7);
}
- void test_createLocation_forMatch() {
- resolveTestUnit('class MyClass {}');
+ test_createLocation_forMatch() async {
+ await resolveTestUnit('class MyClass {}');
Element element = findElement('MyClass');
SourceRange range = rangeElementName(element);
SearchMatch match = new SearchMatchImpl(
@@ -57,8 +57,8 @@ class RefactoringLocationTest extends AbstractSingleUnitTest {
expect(location.length, range.length);
}
- void test_createLocation_forNode() {
- resolveTestUnit('''
+ test_createLocation_forNode() async {
+ await resolveTestUnit('''
main() {
}
''');
@@ -70,8 +70,8 @@ main() {
expect(location.length, node.length);
}
- void test_createLocation_forUnit() {
- resolveTestUnit('');
+ test_createLocation_forUnit() async {
+ await resolveTestUnit('');
SourceRange range = rangeStartLength(10, 20);
// check
Location location = newLocation_fromUnit(testUnit, range);

Powered by Google App Engine
This is Rietveld 408576698