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

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

Issue 2934973002: Address observatory analysis issues. (Closed)
Patch Set: Created 3 years, 6 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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';
7 import 'dart:developer';
8 import 'package:observatory/service_io.dart'; 6 import 'package:observatory/service_io.dart';
9 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
10 import 'service_test_common.dart'; 8
11 import 'test_helper.dart'; 9 import 'test_helper.dart';
12 10
13 var thing1; 11 var thing1;
14 var thing2; 12 var thing2;
15 13
16 testeeMain() { 14 testeeMain() {
17 thing1 = 3; 15 thing1 = 3;
18 thing2 = 4; 16 thing2 = 4;
19 } 17 }
20 18
(...skipping 30 matching lines...) Expand all
51 print(result); 49 print(result);
52 } catch (e) { 50 } catch (e) {
53 didThrow = true; 51 didThrow = true;
54 expect(e.toString(), contains("invalid 'scope' parameter")); 52 expect(e.toString(), contains("invalid 'scope' parameter"));
55 } 53 }
56 expect(didThrow, isTrue); 54 expect(didThrow, isTrue);
57 }, 55 },
58 ]; 56 ];
59 57
60 main(args) => runIsolateTests(args, tests, testeeBefore: testeeMain); 58 main(args) => runIsolateTests(args, tests, testeeBefore: testeeMain);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698