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

Side by Side Diff: runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_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 5
6 import 'package:observatory/service_io.dart'; 6 import 'package:observatory/service_io.dart';
7 import 'package:observatory/models.dart' as M; 7 import 'package:observatory/models.dart' as M;
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 import 'test_helper.dart'; 9 import 'test_helper.dart';
10 import 'service_test_common.dart'; 10 import 'service_test_common.dart';
(...skipping 21 matching lines...) Expand all
32 // uncaught. 32 // uncaught.
33 try { 33 try {
34 await asyncThrower(); // LINE_A. 34 await asyncThrower(); // LINE_A.
35 } on double catch (e) {} 35 } on double catch (e) {}
36 } on Foo catch (e) {} 36 } on Foo catch (e) {}
37 } 37 }
38 38
39 var tests = [ 39 var tests = [
40 hasStoppedWithUnhandledException, 40 hasStoppedWithUnhandledException,
41 (Isolate isolate) async { 41 (Isolate isolate) async {
42 print("We stoppped!"); 42 print("We stopped!");
43 var stack = await isolate.getStack(); 43 var stack = await isolate.getStack();
44 expect(stack['asyncCausalFrames'], isNotNull); 44 expect(stack['asyncCausalFrames'], isNotNull);
45 var asyncStack = stack['asyncCausalFrames']; 45 var asyncStack = stack['asyncCausalFrames'];
46 expect(asyncStack[0].toString(), contains('doThrow')); 46 expect(asyncStack[0].toString(), contains('doThrow'));
47 expect(asyncStack[1].toString(), contains('asyncThrower')); 47 expect(asyncStack[1].toString(), contains('asyncThrower'));
48 expect(asyncStack[2].kind, equals(M.FrameKind.asyncSuspensionMarker)); 48 expect(asyncStack[2].kind, equals(M.FrameKind.asyncSuspensionMarker));
49 expect(asyncStack[3].toString(), contains('testeeMain')); 49 expect(asyncStack[3].toString(), contains('testeeMain'));
50 // We've stopped at LINE_A. 50 // We've stopped at LINE_A.
51 expect( 51 expect(
52 await asyncStack[3].location.toUserString(), contains('.dart:$LINE_A')); 52 await asyncStack[3].location.toUserString(), contains('.dart:$LINE_A'));
53 } 53 }
54 ]; 54 ];
55 55
56 main(args) => runIsolateTests(args, tests, 56 main(args) => runIsolateTests(args, tests,
57 pause_on_unhandled_exceptions: true, testeeConcurrent: testeeMain); 57 pause_on_unhandled_exceptions: true, testeeConcurrent: testeeMain);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698