blob: eb0b71f29f2d757b2e6d7bbb0099b5e79def4af0 [file] [log] [blame]
// 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.
@TestOn("vm")
import 'package:test_descriptor/test_descriptor.dart' as d;
import 'package:test/test.dart';
import '../../io.dart';
void main() {
test("prints the platform name when running on multiple platforms", () async {
await d.file("test.dart", """
import 'dart:async';
import 'package:path/path.dart' as p;
import 'package:test/test.dart';
void main() {
test("success", () {});
}
""").create();
var test = await runTest(
["-p", "content-shell", "-p", "vm", "-j", "1", "test.dart"],
reporter: "compact");
expect(test.stdout, containsInOrder(["[VM]", "[Dartium Content Shell]"]));
await test.shouldExit(0);
}, tags: 'content-shell');
}