Files
sdk/runtime/observatory/tests/service/issue_27287_test.dart
T
Ryan Macnak 0039aff1e3 [test] Remove use of --error_on_bad_type and --error_on_bad_override.
Change-Id: I5b74a4265b25051acfbb35ae9721160b03988121
Reviewed-on: https://dart-review.googlesource.com/c/78708
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2018-10-09 16:46:48 +00:00

32 lines
785 B
Dart

// Copyright (c) 2016, 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=--verbose_debug
import 'service_test_common.dart';
import 'test_helper.dart';
import 'dart:developer';
const int LINE_A = 17;
const int LINE_B = 18;
var libVariable;
testMain() {
debugger();
print("Before"); // LINE_A
libVariable = 0; // LINE_B
print("and after");
}
var tests = <IsolateTest>[
hasStoppedAtBreakpoint,
stoppedAtLine(LINE_A),
stepOver,
// Check that debugger stops at assignment to top-level variable.
stoppedAtLine(LINE_B),
resumeIsolate,
];
main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);