Files
sdk/runtime/observatory/tests/service/reload_sources_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

41 lines
1.3 KiB
Dart

// Copyright (c) 2015, 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.
import 'test_helper.dart';
import 'dart:developer';
import 'service_test_common.dart';
testMain() {
debugger(); // Stop here.
print('1');
while (true) {}
}
var tests = <IsolateTest>[
// Stopped at 'debugger' statement.
hasStoppedAtBreakpoint,
// Reload sources and request to pause post reload. The pause request will be
// ignored because we are already paused at a breakpoint.
reloadSources(true),
// Ensure that we are still stopped at a breakpoint.
hasStoppedAtBreakpoint,
// Resume the isolate into the while loop.
resumeIsolate,
// Reload sources and request to pause post reload. The pause request will
// be respected because we are not already paused.
reloadSources(true),
// Ensure that we are paused post reload request.
hasStoppedPostRequest,
// Resume the isolate.
resumeIsolate,
// Verify that it is running.
isolateIsRunning,
// Reload sources and do not request to pause post reload.
reloadSources(false),
// Verify that it is running.
isolateIsRunning,
];
main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);