center_test.dart 540 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.

Adam Barth's avatar
Adam Barth committed
5
import 'package:flutter_test/flutter_test.dart';
6
import 'package:flutter/widgets.dart';
7 8

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