Files
sdk/runtime/observatory/tests/service/mixin_break_test.dart
T
Ryan Macnak b59923de58 Partial static mode changes for vm-service tests.
Bug: https://github.com/dart-lang/sdk/issues/31587
Change-Id: I9fc7d83aab68ee2b30d71f8a3a75b74fa4dde55e
Reviewed-on: https://dart-review.googlesource.com/30390
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2017-12-19 17:45:55 +00:00

51 lines
1.1 KiB
Dart

// 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.
library mixin_step_test;
import 'dart:developer';
import 'mixin_break_class1.dart';
import 'mixin_break_class2.dart';
import 'service_test_common.dart';
import 'test_helper.dart';
const String file = "mixin_break_mixin_class.dart";
int codeRuns = 0;
code() {
if (++codeRuns > 1) {
print("Calling debugger!");
debugger();
}
Hello1 a = new Hello1();
Hello2 b = new Hello2();
a.speak();
b.speak();
print("Both now compiled");
}
List<String> stops = [];
List<String> expected = [
"$file:5:5 (mixin_break_class1.dart:7:5)",
"$file:5:5 (mixin_break_class2.dart:7:5)",
];
var tests = <IsolateTest>[
hasStoppedAtBreakpoint,
setBreakpointAtUriAndLine(file, 5),
resumeProgramRecordingStops(stops, true),
checkRecordedStops(stops, expected),
];
main(args) {
runIsolateTests(args, tests,
testeeBefore: code,
testeeConcurrent: code,
pause_on_start: false,
pause_on_exit: true);
}