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

import 'package:flutter_devicelab/framework/framework.dart';

/// Smoke test of a task that fails with an exception.
8
Future<void> main() async {
9 10 11 12
  await task(() async {
    throw 'failed';
  });
}