| Index: runtime/observatory/tests/service/observatory_assets_test.dart
|
| diff --git a/runtime/observatory/tests/service/observatory_assets_test.dart b/runtime/observatory/tests/service/observatory_assets_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bd3befb73474d4457b52207a0c57c17ff83c9bd4
|
| --- /dev/null
|
| +++ b/runtime/observatory/tests/service/observatory_assets_test.dart
|
| @@ -0,0 +1,25 @@
|
| +// Copyright (c) 2015, 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.
|
| +
|
| +import 'dart:io';
|
| +import 'package:observatory/service_io.dart';
|
| +import 'package:unittest/unittest.dart';
|
| +
|
| +import 'test_helper.dart';
|
| +
|
| +var tests = [
|
| + (VM vm) async {
|
| + // Simple heartbeat test to ensure we can fetch Observatory resources.
|
| + var heartBeatUrl =
|
| + serviceHttpAddress + '/third_party/trace_viewer_full.html';
|
| + print('Trying to fetch $heartBeatUrl');
|
| + HttpClient client = new HttpClient();
|
| + HttpClientRequest request = await client.getUrl(Uri.parse(heartBeatUrl));
|
| + HttpClientResponse response = await request.close();
|
| + expect(response.statusCode, 200);
|
| + await response.drain();
|
| + }
|
| +];
|
| +
|
| +main(args) async => runVMTests(args, tests);
|
|
|