• Ian Hickson's avatar
    Fix tests (#12132) · 88cd043d
    Ian Hickson authored
    Fixes some tests that weren't aggressively catching exceptions.
    Fixes some actual failures that were found because of this.
    Tries to fix an intermittent failure with crash1_test.dart which could be a race condition.
    88cd043d
flex_layout_test.dart 486 Bytes
// Copyright 2017 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/foundation.dart';
import 'package:test/test.dart';

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

void main() {
  test('layers smoketest for rendering/flex_layout.dart', () {
    FlutterError.onError = (FlutterErrorDetails details) { throw details.exception; };
    demo.main();
  });
}