Chromium Code Reviews| Index: runtime/observatory/tests/service/pause_on_start_then_step_test.dart |
| diff --git a/runtime/observatory/tests/service/pause_on_start_then_step_test.dart b/runtime/observatory/tests/service/pause_on_start_then_step_test.dart |
| index 316667f736ba26423f2deaa43f6a4f40a2441b86..315a630538c73c0557161f454e9e401b6d42fa6f 100644 |
| --- a/runtime/observatory/tests/service/pause_on_start_then_step_test.dart |
| +++ b/runtime/observatory/tests/service/pause_on_start_then_step_test.dart |
| @@ -4,6 +4,7 @@ |
| // VMOptions=--error_on_bad_type --error_on_bad_override |
| import 'package:observatory/service_io.dart'; |
| +import 'package:unittest/unittest.dart'; |
| import 'test_helper.dart'; |
| import 'dart:async'; |
| @@ -35,6 +36,15 @@ var tests = [ |
| await completer.future; |
| } |
| + // Grab the timestamp. |
| + var pausetime = isolate.pauseEvent.timestamp; |
| + expect(pausetime, isNotNull); |
| + // Reload the isolate. |
| + await isolate.reload(); |
| + // Verify that it is the same. |
| + expect(pausetime.millisecondsSinceEpoch, |
| + equals(isolate.pauseEvent.timestamp.millisecondsSinceEpoch)); |
| + |
| completer = new Completer(); |
| stream = await isolate.vm.getEventStream(VM.kDebugStream); |
| subscription = stream.listen((ServiceEvent event) { |
| @@ -52,6 +62,15 @@ var tests = [ |
| // Wait for the isolate to hit PauseBreakpoint. |
| print('Waiting for PauseBreakpoint'); |
| await completer.future; |
| + |
| + // Grab the timestamp. |
| + pausetime = isolate.pauseEvent.timestamp; |
| + expect(pausetime, isNotNull); |
| + // Reload the isolate. |
| + await isolate.reload(); |
| + // Verify that it is the same. |
| + expect(pausetime.millisecondsSinceEpoch, |
| + equals(isolate.pauseEvent.timestamp.millisecondsSinceEpoch)); |
|
turnidge
2015/08/25 18:25:31
Same comment as previous test.
Cutch
2015/08/25 21:54:58
Done.
|
| }, |
| ]; |