Index: runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart |
diff --git a/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart b/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart |
index 8f2acdc9e9b78d3b8f08a878cbff8d51fed65840..6ee06c8e4e26a0b08583993c0b444f5817210be0 100644 |
--- a/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart |
+++ b/runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart |
@@ -10,11 +10,9 @@ import 'package:unittest/unittest.dart'; |
import 'test_helper.dart'; |
import 'service_test_common.dart'; |
-const LINE_A = 36; |
+const LINE_A = 34; |
-class Foo { |
- |
-} |
+class Foo {} |
doThrow() { |
throw "TheException"; // Line 13. |
@@ -33,12 +31,11 @@ testeeMain() async { |
} |
print(s); |
// No try ... catch. |
- await asyncThrower(); // LINE_A |
+ await asyncThrower(); // LINE_A |
} |
var tests = [ |
hasStoppedWithUnhandledException, |
- |
(Isolate isolate) async { |
print("We stoppped!"); |
var stack = await isolate.getStack(); |
@@ -49,12 +46,10 @@ var tests = [ |
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')); |
+ expect( |
+ await asyncStack[3].location.toUserString(), contains('.dart:$LINE_A')); |
} |
]; |
-main(args) => runIsolateTests(args, |
- tests, |
- pause_on_unhandled_exceptions: true, |
- testeeConcurrent: testeeMain); |
+main(args) => runIsolateTests(args, tests, |
+ pause_on_unhandled_exceptions: true, testeeConcurrent: testeeMain); |