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

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

Issue 1726773002: Refactor service tests in preparation of running on sky_shell (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // VMOptions=--error_on_bad_type --error_on_bad_override 4 // VMOptions=--error_on_bad_type --error_on_bad_override
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:developer'; 7 import 'dart:developer';
8 import 'package:observatory/service_io.dart'; 8 import 'package:observatory/service_io.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import 'service_test_common.dart';
10 import 'test_helper.dart'; 11 import 'test_helper.dart';
11 12
12 int globalVar = 100; 13 int globalVar = 100;
13 14
14 class MyClass { 15 class MyClass {
15 static int staticVar = 1000; 16 static int staticVar = 1000;
16 17
17 static void method(int value) { 18 static void method(int value) {
18 debugger(); 19 debugger();
19 } 20 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 evals.add(instance.evaluate('this + frog').then((result) { 68 evals.add(instance.evaluate('this + frog').then((result) {
68 expect(result.type, equals('Error')); 69 expect(result.type, equals('Error'));
69 })); 70 }));
70 return Future.wait(evals); 71 return Future.wait(evals);
71 }); 72 });
72 }, 73 },
73 74
74 ]; 75 ];
75 76
76 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); 77 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698