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

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

Issue 2833073002: Stoppp using trippple consonants (Closed)
Patch Set: More spolling Created 3 years, 8 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 --async_debugger 4 // VMOptions=--error_on_bad_type --error_on_bad_override --async_debugger
5 // VMOptions=--optimization-counter-threshold=5 --error_on_bad_type --error_on_b ad_override --async_debugger 5 // VMOptions=--optimization-counter-threshold=5 --error_on_bad_type --error_on_b ad_override --async_debugger
6 6
7 import 'package:observatory/service_io.dart'; 7 import 'package:observatory/service_io.dart';
8 import 'package:observatory/models.dart' as M; 8 import 'package:observatory/models.dart' as M;
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import 'test_helper.dart'; 10 import 'test_helper.dart';
(...skipping 19 matching lines...) Expand all
30 s += i; 30 s += i;
31 } 31 }
32 print(s); 32 print(s);
33 // No try ... catch. 33 // No try ... catch.
34 await asyncThrower(); // LINE_A 34 await asyncThrower(); // LINE_A
35 } 35 }
36 36
37 var tests = [ 37 var tests = [
38 hasStoppedWithUnhandledException, 38 hasStoppedWithUnhandledException,
39 (Isolate isolate) async { 39 (Isolate isolate) async {
40 print("We stoppped!"); 40 print("We stopped!");
41 var stack = await isolate.getStack(); 41 var stack = await isolate.getStack();
42 expect(stack['asyncCausalFrames'], isNotNull); 42 expect(stack['asyncCausalFrames'], isNotNull);
43 var asyncStack = stack['asyncCausalFrames']; 43 var asyncStack = stack['asyncCausalFrames'];
44 expect(asyncStack[0].toString(), contains('doThrow')); 44 expect(asyncStack[0].toString(), contains('doThrow'));
45 expect(asyncStack[1].toString(), contains('asyncThrower')); 45 expect(asyncStack[1].toString(), contains('asyncThrower'));
46 expect(asyncStack[2].kind, equals(M.FrameKind.asyncSuspensionMarker)); 46 expect(asyncStack[2].kind, equals(M.FrameKind.asyncSuspensionMarker));
47 expect(asyncStack[3].toString(), contains('testeeMain')); 47 expect(asyncStack[3].toString(), contains('testeeMain'));
48 // We've stopped at LINE_A. 48 // We've stopped at LINE_A.
49 expect( 49 expect(
50 await asyncStack[3].location.toUserString(), contains('.dart:$LINE_A')); 50 await asyncStack[3].location.toUserString(), contains('.dart:$LINE_A'));
51 } 51 }
52 ]; 52 ];
53 53
54 main(args) => runIsolateTests(args, tests, 54 main(args) => runIsolateTests(args, tests,
55 pause_on_unhandled_exceptions: true, testeeConcurrent: testeeMain); 55 pause_on_unhandled_exceptions: true, testeeConcurrent: testeeMain);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698