| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library isolate_list_test; | |
| 6 | |
| 7 import 'test_helper.dart'; | |
| 8 import 'package:expect/expect.dart'; | |
| 9 | |
| 10 | |
| 11 class VMTest extends VmServiceRequestHelper { | |
| 12 VMTest(port) : super('http://127.0.0.1:$port/vm'); | |
| 13 | |
| 14 onRequestCompleted(Map reply) { | |
| 15 VMTester tester = new VMTester(reply); | |
| 16 tester.checkIsolateCount(1); | |
| 17 } | |
| 18 } | |
| 19 | |
| 20 | |
| 21 main() { | |
| 22 var process = new TestLauncher('isolate_list_script.dart'); | |
| 23 process.launch().then((port) { | |
| 24 var test = new VMTest(port); | |
| 25 test.makeRequest().then((_) { | |
| 26 process.requestExit(); | |
| 27 }); | |
| 28 }); | |
| 29 } | |
| OLD | NEW |