| OLD | NEW |
| 1 // Copyright (c) 2016, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fasta.testing.suite; | 5 library fasta.testing.suite; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import 'dart:convert' show JSON; | 9 import 'dart:convert' show JSON; |
| 10 | 10 |
| 11 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; | 11 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; |
| 12 | 12 |
| 13 import 'package:kernel/ast.dart' show Library, Program; | 13 import 'package:kernel/ast.dart' show Library, Program; |
| 14 | 14 |
| 15 import 'package:kernel/analyzer/loader.dart' show DartLoader; | 15 import 'package:analyzer/src/kernel/loader.dart' show DartLoader; |
| 16 | 16 |
| 17 import 'package:kernel/target/targets.dart' show Target, TargetFlags, getTarget; | 17 import 'package:kernel/target/targets.dart' show Target, TargetFlags, getTarget; |
| 18 | 18 |
| 19 import 'package:testing/testing.dart' | 19 import 'package:testing/testing.dart' |
| 20 show Chain, ExpectationSet, Result, Step, TestDescription; | 20 show Chain, ExpectationSet, Result, Step, TestDescription; |
| 21 | 21 |
| 22 import '../errors.dart' show InputError; | 22 import '../errors.dart' show InputError; |
| 23 | 23 |
| 24 import 'kernel_chain.dart' | 24 import 'kernel_chain.dart' |
| 25 show MatchExpectation, Print, Run, Verify, TestContext, WriteDill; | 25 show MatchExpectation, Print, Run, Verify, TestContext, WriteDill; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 p = await sourceTarget.writeOutline(null); | 186 p = await sourceTarget.writeOutline(null); |
| 187 if (fullCompile) { | 187 if (fullCompile) { |
| 188 p = await sourceTarget.writeProgram(null); | 188 p = await sourceTarget.writeProgram(null); |
| 189 } | 189 } |
| 190 } on InputError catch (e, s) { | 190 } on InputError catch (e, s) { |
| 191 return fail(null, e.error, s); | 191 return fail(null, e.error, s); |
| 192 } | 192 } |
| 193 return pass(p); | 193 return pass(p); |
| 194 } | 194 } |
| 195 } | 195 } |
| OLD | NEW |