Files
sdk/tests/lib_2/developer/metrics_num_test.dart
T
Ryan Macnak bd6cd9cd3a [test] Move and migrate dart:profiler tests.
Move tests from tests/lib_2/profiler to tests/lib_2/developer since `dart:profiler` no longer exists.

Bug: https://github.com/dart-lang/sdk/issues/40142
Change-Id: Iccf68ea2922caa52122d48c91fe5fa35a241b051
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133281
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-01-24 20:15:48 +00:00

19 lines
470 B
Dart

// 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:developer';
import 'package:expect/expect.dart';
testGaugeDouble() {
Expect.throws(() {
// max argument is not a double
var gauge = new Gauge('test', 'alpha bravo', 1.0, 4 as dynamic);
});
}
main() {
testGaugeDouble();
}