| OLD | NEW |
| 1 import 'package:observatory/service_io.dart'; | 1 import 'package:observatory/service_io.dart'; |
| 2 import 'package:unittest/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
| 3 import 'test_helper.dart'; | 3 import 'test_helper.dart'; |
| 4 | 4 |
| 5 import 'dart:profiler'; | 5 import 'dart:profiler'; |
| 6 | 6 |
| 7 void script() { | 7 void script() { |
| 8 var counter = new Counter('a.b.c', 'description'); | 8 var counter = new Counter('a.b.c', 'description'); |
| 9 Metrics.register(counter); | 9 Metrics.register(counter); |
| 10 counter.value = 1234.5; | 10 counter.value = 1234.5; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 }), | 30 }), |
| 31 | 31 |
| 32 (Isolate isolate) => | 32 (Isolate isolate) => |
| 33 isolate.get('metrics/vm/doesnotexist').then((DartError err) { | 33 isolate.get('metrics/vm/doesnotexist').then((DartError err) { |
| 34 expect(err is DartError, isTrue); | 34 expect(err is DartError, isTrue); |
| 35 }), | 35 }), |
| 36 | 36 |
| 37 ]; | 37 ]; |
| 38 | 38 |
| 39 main(args) => runIsolateTests(args, tests, testeeBefore: script); | 39 main(args) => runIsolateTests(args, tests, testeeBefore: script); |
| OLD | NEW |