OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // VMOptions=--error_on_bad_type --error_on_bad_override | 4 // VMOptions=--error_on_bad_type --error_on_bad_override |
5 | 5 |
6 import 'package:observatory/service_io.dart'; | 6 import 'package:observatory/service_io.dart'; |
7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
8 | 8 |
9 import 'test_helper.dart'; | 9 import 'test_helper.dart'; |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 expect(frames.containsKey(frame['parent']), isTrue); | 41 expect(frames.containsKey(frame['parent']), isTrue); |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
45 List events = result['traceEvents']; | 45 List events = result['traceEvents']; |
46 for (Map event in events) { | 46 for (Map event in events) { |
47 expect(event['ph'], equals('P')); | 47 expect(event['ph'], equals('P')); |
48 expect(event['pid'], isInt); | 48 expect(event['pid'], isInt); |
49 expect(event['tid'], isInt); | 49 expect(event['tid'], isInt); |
50 expect(event['ts'], isInt); | 50 expect(event['ts'], isInt); |
51 expect(event['category'], equals("Dart")); | 51 expect(event['cat'], equals("Dart")); |
52 expect(frames.containsKey(event['sf']), isTrue); | 52 expect(frames.containsKey(event['sf']), isTrue); |
53 } | 53 } |
54 }, | 54 }, |
55 ]; | 55 ]; |
56 | 56 |
57 main(args) async => runIsolateTests(args, tests, testeeBefore: testeeDo); | 57 main(args) async => runIsolateTests(args, tests, testeeBefore: testeeDo); |
OLD | NEW |