| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library test_helper; | 5 library test_helper; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 import 'package:observatory/service_io.dart'; | 10 import 'package:observatory/service_io.dart'; |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 new _ServiceTesterRunner().run( | 481 new _ServiceTesterRunner().run( |
| 482 mainArgs: mainArgs, | 482 mainArgs: mainArgs, |
| 483 extraArgs: extraArgs, | 483 extraArgs: extraArgs, |
| 484 vmTests: tests, | 484 vmTests: tests, |
| 485 pause_on_start: pause_on_start, | 485 pause_on_start: pause_on_start, |
| 486 pause_on_exit: pause_on_exit, | 486 pause_on_exit: pause_on_exit, |
| 487 verbose_vm: verbose_vm, | 487 verbose_vm: verbose_vm, |
| 488 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions); | 488 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions); |
| 489 } | 489 } |
| 490 } | 490 } |
| 491 |
| 492 /// Whether we're running from kernel. |
| 493 bool isKernel(Isolate isolate) { |
| 494 return isolate.name.contains(r".dill$"); |
| 495 } |
| OLD | NEW |