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

Unified Diff: runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart

Issue 2718353002: Revert "Track the 'awaiter return' call stack..." (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart ('k') | runtime/vm/ast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart
diff --git a/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart b/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart
deleted file mode 100644
index 2f4354e4dccbf950d836fe9010635a185915d8c4..0000000000000000000000000000000000000000
--- a/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-// VMOptions=--error_on_bad_type --error_on_bad_override
-
-import 'package:observatory/service_io.dart';
-import 'package:observatory/models.dart' as M;
-import 'package:unittest/unittest.dart';
-import 'test_helper.dart';
-import 'service_test_common.dart';
-
-const LINE_A = 37;
-
-class Foo {
-
-}
-
-doThrow() {
- throw "TheException"; // Line 13.
- return "end of doThrow";
-}
-
-asyncThrower() async {
- doThrow();
-}
-
-testeeMain() async {
- try {
- // caught.
- try {
- await asyncThrower();
- } catch (e) {
- }
-
- // uncaught.
- try {
- await asyncThrower(); // LINE_A.
- } on double catch (e) {
- }
- } on Foo catch (e) {
- }
-}
-
-var tests = [
- hasStoppedWithUnhandledException,
-
- (Isolate isolate) async {
- print("We stoppped!");
- var stack = await isolate.getStack();
- expect(stack['asyncCausalFrames'], isNotNull);
- var asyncStack = stack['asyncCausalFrames'];
- expect(asyncStack[0].toString(), contains('doThrow'));
- expect(asyncStack[1].toString(), contains('asyncThrower'));
- expect(asyncStack[2].kind, equals(M.FrameKind.asyncSuspensionMarker));
- expect(asyncStack[3].toString(), contains('testeeMain'));
- // We've stopped at LINE_A.
- expect(await asyncStack[3].location.toUserString(),
- contains('.dart:$LINE_A'));
- }
-];
-
-main(args) => runIsolateTests(args,
- tests,
- pause_on_unhandled_exceptions: true,
- testeeConcurrent: testeeMain);
« no previous file with comments | « runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart ('k') | runtime/vm/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698