| Index: tests/language/issue20476_test.dart
|
| diff --git a/tests/lib/profiler/metrics_num_test.dart b/tests/language/issue20476_test.dart
|
| similarity index 59%
|
| copy from tests/lib/profiler/metrics_num_test.dart
|
| copy to tests/language/issue20476_test.dart
|
| index d6a6689809a6a22173425311e424e16da8f0b345..35890a672dc6476dd2b20129c02a0d757dbfb945 100644
|
| --- a/tests/lib/profiler/metrics_num_test.dart
|
| +++ b/tests/language/issue20476_test.dart
|
| @@ -1,18 +1,24 @@
|
| // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
| -//
|
|
|
| -import 'dart:profiler';
|
| import 'package:expect/expect.dart';
|
|
|
| -testGaugeDouble() {
|
| - Expect.throws(() {
|
| - // max argument is not a double
|
| - gauge = new Gauge('test', 'alpha bravo', 1.0, 4);
|
| - });
|
| +foo() {
|
| + try {
|
| + try {
|
| + return 1;
|
| + } catch (e1) {
|
| + } finally {
|
| + return 3;
|
| + }
|
| + } catch (e2) {
|
| + } finally {
|
| + return 5;
|
| + }
|
| }
|
|
|
| +
|
| main() {
|
| - testGaugeDouble();
|
| + Expect.equals(5, foo());
|
| }
|
|
|