Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1812)

Unified Diff: tests/language/issue20476_test.dart

Issue 466013002: Add regression test for issue 20476 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698