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

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

Issue 2680303002: Kernel debugging; service tests (Closed)
Patch Set: Changes based on feedback. Also fixed regress_28443_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 // 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
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'test_helper.dart';
6 import 'service_test_common.dart';
7 import 'dart:io';
8
9 const int LINE_A = 13;
10 const String file = "next_through_simple_async_test.dart";
11
12 // line A is at the "code() async" line
13 code() async {
14 File f = new File(Platform.script.path);
15 DateTime modified = await f.lastModified();
16 bool exists = await f.exists();
17 print("Modified: $modified; exists: $exists");
18 foo();
19 }
20
21 foo() {
22 print("Hello from Foo!");
23 }
24
25 List<String> stops = [];
26 List<String> expected = [
27 "$file:${LINE_A+0}:5",
28 "$file:${LINE_A+1}:30",
29 "$file:${LINE_A+1}:37",
30 "$file:${LINE_A+1}:16",
31 "$file:${LINE_A+2}:31",
32 "$file:${LINE_A+2}:23",
33 "$file:${LINE_A+3}:25",
34 "$file:${LINE_A+3}:17",
35 "$file:${LINE_A+4}:47",
36 "$file:${LINE_A+4}:3",
37 "$file:${LINE_A+5}:3",
38 "$file:${LINE_A+6}:1"
39 ];
40
41 var tests = [
42 hasPausedAtStart,
43 setBreakpointAtLine(LINE_A),
44 runStepThroughProgramRecordingStops(stops),
45 checkRecordedStops(stops, expected)
46 ];
47
48 main(args) {
49 runIsolateTestsSynchronous(args, tests,
50 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true);
51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698