mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-12 16:10:10 +08:00
30 lines
1002 B
Dart
30 lines
1002 B
Dart
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'package:flutter_web/material.dart';
|
|
import 'package:flutter_web_test/flutter_web_test.dart';
|
|
|
|
void main() {
|
|
// Regression test for https://github.com/flutter/flutter/issues/21506.
|
|
testWidgets('InkSplash receives textDirection', (WidgetTester tester) async {
|
|
await tester.pumpWidget(MaterialApp(
|
|
home: Scaffold(
|
|
appBar: AppBar(title: const Text('Button Border Test')),
|
|
body: Center(
|
|
child: RaisedButton(
|
|
child: const Text('Test'),
|
|
onPressed: () {},
|
|
shape: Border.all(
|
|
color: Colors.blue,
|
|
),
|
|
),
|
|
),
|
|
)));
|
|
await tester.tap(find.text('Test'));
|
|
// start ink animation which asserts for a textDirection.
|
|
await tester.pumpAndSettle(const Duration(milliseconds: 30));
|
|
expect(tester.takeException(), isNull);
|
|
});
|
|
}
|