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

Side by Side Diff: tests/lib/developer/metrics_test.dart

Issue 1139503002: Move 'dart:profiler' contents into 'dart:developer' and remove 'dart:profiler' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/lib/developer/metrics_num_test.dart ('k') | tests/lib/developer/user_tags_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 5
6 import 'dart:profiler'; 6 import 'dart:developer';
7 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 8
9 testGauge1() { 9 testGauge1() {
10 var gauge = new Gauge('test', 'alpha bravo', 0.0, 100.0); 10 var gauge = new Gauge('test', 'alpha bravo', 0.0, 100.0);
11 Expect.equals(0.0, gauge.min); 11 Expect.equals(0.0, gauge.min);
12 Expect.equals(0.0, gauge.value); 12 Expect.equals(0.0, gauge.value);
13 Expect.equals(100.0, gauge.max); 13 Expect.equals(100.0, gauge.max);
14 Expect.equals('test', gauge.name); 14 Expect.equals('test', gauge.name);
15 Expect.equals('alpha bravo', gauge.description); 15 Expect.equals('alpha bravo', gauge.description);
16 gauge.value = 44.0; 16 gauge.value = 44.0;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 main() { 107 main() {
108 testGauge1(); 108 testGauge1();
109 testGauge2(); 109 testGauge2();
110 testCounter(); 110 testCounter();
111 testCustomCounter(); 111 testCustomCounter();
112 testMetricNameCollision(); 112 testMetricNameCollision();
113 testBadName(); 113 testBadName();
114 } 114 }
OLDNEW
« no previous file with comments | « tests/lib/developer/metrics_num_test.dart ('k') | tests/lib/developer/user_tags_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698