| Index: test/runner/browser/compiler_pool_test.dart
|
| diff --git a/test/runner/browser/compiler_pool_test.dart b/test/runner/browser/compiler_pool_test.dart
|
| deleted file mode 100644
|
| index 1ba74d2bbb18dd95cb191e1953ef85f359be7970..0000000000000000000000000000000000000000
|
| --- a/test/runner/browser/compiler_pool_test.dart
|
| +++ /dev/null
|
| @@ -1,61 +0,0 @@
|
| -// 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 'dart:io';
|
| -
|
| -import 'package:path/path.dart' as p;
|
| -import 'package:test/src/util/io.dart';
|
| -import 'package:test/test.dart';
|
| -
|
| -import '../../io.dart';
|
| -
|
| -String _sandbox;
|
| -
|
| -void main() {
|
| - setUp(() {
|
| - _sandbox = createTempDir();
|
| - });
|
| -
|
| - tearDown(() {
|
| - new Directory(_sandbox).deleteSync(recursive: true);
|
| - });
|
| -
|
| - test("doesn't intermingle warnings", () {
|
| - // These files need trailing newlines to work around issue 22667.
|
| - var testPath1 = p.join(_sandbox, "test1.dart");
|
| - new File(testPath1).writeAsStringSync("String main() => 12;\n");
|
| -
|
| - var testPath2 = p.join(_sandbox, "test2.dart");
|
| - new File(testPath2).writeAsStringSync("int main() => 'foo';\n");
|
| -
|
| - var result = _runTest(["-p", "chrome", "test1.dart", "test2.dart"]);
|
| - expect(result.stdout, startsWith("""
|
| -Compiling test1.dart...
|
| -test1.dart:1:18:
|
| -Warning: 'int' is not assignable to 'String'.
|
| -String main() => 12;
|
| - ^^
|
| -Compiling test2.dart...
|
| -test2.dart:1:15:
|
| -Warning: 'String' is not assignable to 'int'.
|
| -int main() => 'foo';
|
| - ^^^^^
|
| -"""));
|
| - expect(result.exitCode, equals(1));
|
| - });
|
| -
|
| - test("uses colors if the test runner uses colors", () {
|
| - var testPath = p.join(_sandbox, "test.dart");
|
| - new File(testPath).writeAsStringSync("String main() => 12;\n");
|
| -
|
| - var result = _runTest(["--color", "-p", "chrome", "test.dart"]);
|
| - expect(result.stdout, contains('\u001b[35m'));
|
| - expect(result.exitCode, equals(1));
|
| - });
|
| -}
|
| -
|
| -ProcessResult _runTest(List<String> args) =>
|
| - runTest(args, workingDirectory: _sandbox);
|
|
|