| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async'; | |
| 6 import 'dart:developer'; | |
| 7 import 'package:observatory/service_io.dart'; | 5 import 'package:observatory/service_io.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 6 import 'package:unittest/unittest.dart'; |
| 9 import 'service_test_common.dart'; | |
| 10 import 'test_helper.dart'; | 7 import 'test_helper.dart'; |
| 11 | 8 |
| 12 var tests = [ | 9 var tests = [ |
| 13 | 10 |
| 14 (Isolate isolate) async { | 11 (Isolate isolate) async { |
| 15 Library root = await isolate.rootLibrary.load(); | 12 Library root = await isolate.rootLibrary.load(); |
| 16 | 13 |
| 17 Class classLibrary = await root.clazz.load(); | 14 Class classLibrary = await root.clazz.load(); |
| 18 print(classLibrary); | 15 print(classLibrary); |
| 19 var result = await classLibrary.evaluate('3 + 4'); | 16 var result = await classLibrary.evaluate('3 + 4'); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 35 print(classArray); | 32 print(classArray); |
| 36 result = await classArray.evaluate('3 + 4'); | 33 result = await classArray.evaluate('3 + 4'); |
| 37 print(result); | 34 print(result); |
| 38 expect(result is Instance, isTrue); | 35 expect(result is Instance, isTrue); |
| 39 expect(result.valueAsString, equals('7')); | 36 expect(result.valueAsString, equals('7')); |
| 40 }, | 37 }, |
| 41 | 38 |
| 42 ]; | 39 ]; |
| 43 | 40 |
| 44 main(args) => runIsolateTests(args, tests); | 41 main(args) => runIsolateTests(args, tests); |
| OLD | NEW |