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

Side by Side Diff: runtime/observatory/tests/service/developer_server_control_test.dart

Issue 2438613002: Provide an API to dart:developer to control the web server hosting the Service Protocol (Closed)
Patch Set: updated CHANGELOG.md Created 4 years, 2 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014, 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 // VMOptions=--error_on_bad_type --error_on_bad_override
5
6 import 'dart:async';
7 import 'dart:developer';
8 import 'package:observatory/service_io.dart';
9 import 'package:unittest/unittest.dart';
10 import 'test_helper.dart';
11
12 Future<Null> testeeBefore() async {
13 print('testee before');
14 print(await Service.getInfo());
15 // Start the web server.
16 ServiceProtocolInfo info = await Service.controlWebServer(enable: true);
17 print(info);
18 }
19
20 var tests = [
21 (Isolate isolate) async {
22 await isolate.reload();
23 // Just getting here means that the testee enabled the service protocol
24 // web server.
25 expect(true, true);
rmacnak 2016/10/20 17:12:31 true, isTrue
Cutch 2016/10/20 23:31:51 expect(true, true) is equivalent
26 }
27 ];
28
29 main(args) => runIsolateTests(args,
30 tests,
31 testeeBefore: testeeBefore,
32 // the testee is responsible for starting the
33 // web server.
34 testeeControlsServer: true);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698