// Copyright 2018 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'../flutter_test_alternative.dart';inttest1(intvalue){returnvalue+1;}inttest2(intvalue){throw2;}voidmain(){test('compute()',()async{expect(awaitcompute(test1,0),1);expect(compute(test2,0),throwsA(isInstanceOf<Exception>()));});}