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

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

Issue 1238803002: Make observatory tests analyzer clean (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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=--compile_all --error_on_bad_type --error_on_bad_override 4 // VMOptions=--compile_all --error_on_bad_type --error_on_bad_override
5 5
6 import 'package:observatory/service_io.dart'; 6 import 'package:observatory/service_io.dart';
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'test_helper.dart'; 8 import 'test_helper.dart';
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:developer';
11 10
12 doThrow() { 11 doThrow() {
13 throw "TheException"; // Line 13. 12 throw "TheException"; // Line 13.
14 return "end of doThrow"; 13 return "end of doThrow";
15 } 14 }
16 15
17 doCaught() { 16 doCaught() {
18 try { 17 try {
19 doThrow(); 18 doThrow();
20 } catch (e) {} 19 } catch (e) {}
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 102
104 await test("none", "doCaught()", false, true); 103 await test("none", "doCaught()", false, true);
105 await test("none", "doUncaught()", false, false); 104 await test("none", "doUncaught()", false, false);
106 105
107 subscription.cancel(); 106 subscription.cancel();
108 }, 107 },
109 108
110 ]; 109 ];
111 110
112 main(args) => runIsolateTests(args, tests); 111 main(args) => runIsolateTests(args, tests);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698