blob: 7d7f2e06435a4799be2be17e5871b97c3efa09f8 [file] [log] [blame]
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library isolate_list_test;
import 'test_helper.dart';
import 'package:expect/expect.dart';
class IsolateListTest extends VmServiceRequestHelper {
IsolateListTest(port) : super('http://127.0.0.1:$port/isolates');
onRequestCompleted(Map reply) {
IsolateListTester tester = new IsolateListTester(reply);
tester.checkIsolateCount(1);
tester.checkIsolateNameContains('isolate_list_script.dart');
}
}
main() {
var process = new TestLauncher('isolate_list_script.dart');
process.launch().then((port) {
var test = new IsolateListTest(port);
test.makeRequest().then((_) {
process.requestExit();
});
});
}