center_test.dart 562 Bytes
Newer Older
Hixie's avatar
Hixie committed
1 2 3 4
// Copyright 2015 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.

5
@TestOn('!chrome') // flaky on web
Adam Barth's avatar
Adam Barth committed
6
import 'package:flutter_test/flutter_test.dart';
7
import 'package:flutter/widgets.dart';
8 9

void main() {
10
  testWidgets('Can be placed in an infinite box', (WidgetTester tester) async {
11
    await tester.pumpWidget(
12
      Directionality(
13
        textDirection: TextDirection.ltr,
14
        child: ListView(children: const <Widget>[Center()]),
15 16
      ),
    );
17 18
  });
}