| 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/models.dart' as M; | 6 import 'package:observatory/models.dart' as M; | 
| 7 import 'package:observatory/service_io.dart'; | 7 import 'package:observatory/service_io.dart'; | 
| 8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; | 
| 9 import 'test_helper.dart'; | 9 import 'test_helper.dart'; | 
| 10 import 'dart:async'; | 10 import 'dart:async'; | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 62     }); | 62     }); | 
| 63 | 63 | 
| 64     print('Stepping...'); | 64     print('Stepping...'); | 
| 65     isolate.stepInto(); | 65     isolate.stepInto(); | 
| 66 | 66 | 
| 67     // Wait for the isolate to hit PauseBreakpoint. | 67     // Wait for the isolate to hit PauseBreakpoint. | 
| 68     print('Waiting for PauseBreakpoint'); | 68     print('Waiting for PauseBreakpoint'); | 
| 69     await completer.future; | 69     await completer.future; | 
| 70 | 70 | 
| 71     // Grab the timestamp. | 71     // Grab the timestamp. | 
|  | 72     print('Getting pausevent timestamp'); | 
| 72     var pausetime2 = isolate.pauseEvent.timestamp; | 73     var pausetime2 = isolate.pauseEvent.timestamp; | 
| 73     expect(pausetime2, isNotNull); | 74     expect(pausetime2, isNotNull); | 
| 74     // Reload the isolate. | 75     // Reload the isolate. | 
|  | 76     print('Reloading isolate'); | 
| 75     await isolate.reload(); | 77     await isolate.reload(); | 
|  | 78     print('Reload finished'); | 
| 76     // Verify that it is the same. | 79     // Verify that it is the same. | 
| 77     expect(pausetime2.millisecondsSinceEpoch, | 80     expect(pausetime2.millisecondsSinceEpoch, | 
| 78         equals(isolate.pauseEvent.timestamp.millisecondsSinceEpoch)); | 81         equals(isolate.pauseEvent.timestamp.millisecondsSinceEpoch)); | 
| 79 | 82 | 
| 80     expect(pausetime2.millisecondsSinceEpoch, | 83     expect(pausetime2.millisecondsSinceEpoch, | 
| 81         greaterThan(pausetime1.millisecondsSinceEpoch)); | 84         greaterThan(pausetime1.millisecondsSinceEpoch)); | 
|  | 85 | 
|  | 86     print('Test finished'); | 
| 82   }, | 87   }, | 
| 83 ]; | 88 ]; | 
| 84 | 89 | 
| 85 main(args) => runIsolateTests(args, tests, | 90 main(args) => runIsolateTests(args, tests, | 
| 86     testeeConcurrent: testMain, | 91     testeeConcurrent: testMain, | 
| 87     pause_on_start: true, | 92     pause_on_start: true, | 
| 88     pause_on_exit: true, | 93     pause_on_exit: true, | 
| 89     verbose_vm: true, | 94     verbose_vm: true, | 
| 90     extraArgs: ['--trace-service', '--trace-service-verbose']); | 95     extraArgs: ['--trace-service', '--trace-service-verbose']); | 
| OLD | NEW | 
|---|