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:
Edman P. Anjos
2018-06-11 16:16:39 +02:00
committed by Devon Carew
parent 625ac52360
commit d454629a06

View File

@@ -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) {