flex_layout_test.dart 636 Bytes
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
Ian Hickson's avatar
Ian Hickson committed
2 3 4
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

Ian Hickson's avatar
Ian Hickson committed
5
import 'package:flutter/foundation.dart';
6
import 'package:flutter/scheduler.dart';
7
import 'package:flutter_test/flutter_test.dart' hide TypeMatcher, isInstanceOf;
Ian Hickson's avatar
Ian Hickson committed
8 9 10 11 12

import '../../../rendering/flex_layout.dart' as demo;

void main() {
  test('layers smoketest for rendering/flex_layout.dart', () {
Ian Hickson's avatar
Ian Hickson committed
13
    FlutterError.onError = (FlutterErrorDetails details) { throw details.exception; };
Ian Hickson's avatar
Ian Hickson committed
14
    demo.main();
15
    expect(SchedulerBinding.instance.hasScheduledFrame, true);
Ian Hickson's avatar
Ian Hickson committed
16 17
  });
}