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

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

Issue 2243833003: Removing warnings from tests (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
OLDNEW
« 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