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

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

Issue 2680303002: Kernel debugging; service tests (Closed)
Patch Set: New failing test Created 3 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
(Empty)
1 import 'test_helper.dart';
Kevin Millikin (Google) 2017/02/08 15:37:51 License header.
jensj 2017/02/13 14:04:16 Done.
2 import 'service_test_common.dart';
3
4 const int LINE_A = 8;
5 const String file = "next_through_catch_test.dart";
6
7 code() {
8 try {
9 var value = "world";
10 throw "Hello, $value";
11 } catch(e, st) {
12 print(e);
13 print(st);
14 }
15 try {
16 throw "Hello, world";
17 } catch(e, st) {
18 print(e);
19 print(st);
20 }
21 }
22
23 List<String> stops = [];
24 List<String> expected = [
25 "$file:${LINE_A+1}:15",
26 "$file:${LINE_A+2}:26",
27 "$file:${LINE_A+4}:5",
28 "$file:${LINE_A+5}:5",
29 "$file:${LINE_A+8}:5",
30 "$file:${LINE_A+10}:5",
31 "$file:${LINE_A+11}:5",
32 "$file:${LINE_A+13}:1"
33 ];
34
35 var tests = [
36 hasPausedAtStart,
37 setBreakpointAtLine(LINE_A),
38 runStepThroughProgramRecordingStops(stops),
39 checkRecordedStops(stops, expected)
40 ];
41
42 main(args) {
43 runIsolateTestsSynchronous(args, tests,
44 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true);
45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698