Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: runtime/observatory/tests/service/observatory_assets_test.dart

Issue 1529153003: Test that we can load Observatory frontend resources (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698