Add @isTest annotation to testGesture (#18311)
Notifies IDEs this is a test method, and helps e.g. the flutter plugin recognize test methods and display them in the structure view in intellij.
This commit is contained in:
committed by
Devon Carew
parent
625ac52360
commit
d454629a06
@@ -4,6 +4,7 @@
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'package:quiver/testing/async.dart';
|
||||
|
||||
@@ -32,6 +33,7 @@ class GestureTester {
|
||||
|
||||
typedef void GestureTest(GestureTester tester);
|
||||
|
||||
@isTest
|
||||
void testGesture(String description, GestureTest callback) {
|
||||
test(description, () {
|
||||
new FakeAsync().run((FakeAsync async) {
|
||||
|
||||
Reference in New Issue
Block a user