| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /// Check that 'dart:' libraries have their corresponding dart.library.X | 5 /// Check that 'dart:' libraries have their corresponding dart.library.X |
| 6 /// environment variable set. | 6 /// environment variable set. |
| 7 | 7 |
| 8 import "dart:io"; | |
| 9 | |
| 10 import "dart:async"; | |
| 11 | |
| 12 import "memory_source_file_helper.dart"; | 8 import "memory_source_file_helper.dart"; |
| 13 | 9 |
| 14 import "package:async_helper/async_helper.dart"; | 10 import "package:async_helper/async_helper.dart"; |
| 15 | 11 |
| 16 import 'package:expect/expect.dart' show | 12 import 'package:expect/expect.dart' show |
| 17 Expect; | 13 Expect; |
| 18 | 14 |
| 19 import 'package:compiler/src/elements/elements.dart' show | |
| 20 LibraryElement; | |
| 21 | |
| 22 import 'package:compiler/src/null_compiler_output.dart' show | 15 import 'package:compiler/src/null_compiler_output.dart' show |
| 23 NullCompilerOutput; | 16 NullCompilerOutput; |
| 24 | 17 |
| 18 import 'package:compiler/src/options.dart' show |
| 19 CompilerOptions; |
| 20 |
| 25 import 'package:compiler/compiler_new.dart' show | 21 import 'package:compiler/compiler_new.dart' show |
| 26 CompilerInput, | 22 CompilerInput, |
| 27 CompilerDiagnostics, | 23 CompilerDiagnostics; |
| 28 CompilerOptions; | |
| 29 | |
| 30 import 'package:sdk_library_metadata/libraries.dart' show | |
| 31 LibraryInfo; | |
| 32 | 24 |
| 33 const clientPlatform = r''' | 25 const clientPlatform = r''' |
| 34 [dart-spec] | 26 [dart-spec] |
| 35 spec: 3rd edition. | 27 spec: 3rd edition. |
| 36 | 28 |
| 37 [features] | 29 [features] |
| 38 # No extra features | 30 # No extra features |
| 39 | 31 |
| 40 [libraries] | 32 [libraries] |
| 41 mock.client: mock1.dart | 33 mock.client: mock1.dart |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 Expect.equals("false", compiler.fromEnvironment("dart.library.collection")); | 129 Expect.equals("false", compiler.fromEnvironment("dart.library.collection")); |
| 138 Expect.equals("foo", compiler.fromEnvironment("dart.library.mock.client")); | 130 Expect.equals("foo", compiler.fromEnvironment("dart.library.mock.client")); |
| 139 } | 131 } |
| 140 | 132 |
| 141 main() { | 133 main() { |
| 142 asyncStart(); | 134 asyncStart(); |
| 143 runTest().then((_) { | 135 runTest().then((_) { |
| 144 asyncEnd(); | 136 asyncEnd(); |
| 145 }); | 137 }); |
| 146 } | 138 } |
| OLD | NEW |