Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: pkg/front_end/test/fasta/sdk_test.dart

Issue 2666913003: Rewrite package:fasta/testing URIs. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/front_end/test/fasta/outline_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.test.compile_test; 5 library fasta.test.compile_test;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 Future; 8 Future;
9 9
10 import 'package:fasta/testing/suite.dart'; 10 import 'package:front_end/src/fasta/testing/suite.dart';
11 11
12 import 'package:fasta/testing/kernel_chain.dart' show 12 import 'package:front_end/src/fasta/testing/kernel_chain.dart' show
13 MatchExpectation; 13 MatchExpectation;
14 14
15 Future<FeContext> createContext( 15 Future<FeContext> createContext(
16 Chain suite, Map<String, String> environment) async { 16 Chain suite, Map<String, String> environment) async {
17 environment[ENABLE_FULL_COMPILE] = ""; 17 environment[ENABLE_FULL_COMPILE] = "";
18 environment[AST_KIND_INDEX] = "${AstKind.Kernel.index}"; 18 environment[AST_KIND_INDEX] = "${AstKind.Kernel.index}";
19 FeContext context = 19 FeContext context =
20 await TestContext.create(suite, environment, FeContext.create); 20 await TestContext.create(suite, environment, FeContext.create);
21 int index; 21 int index;
22 for (int i = 0; i < context.steps.length; i++) { 22 for (int i = 0; i < context.steps.length; i++) {
23 if (context.steps[i] is MatchExpectation) { 23 if (context.steps[i] is MatchExpectation) {
24 index = i; 24 index = i;
25 break; 25 break;
26 } 26 }
27 } 27 }
28 context.steps.removeAt(index); 28 context.steps.removeAt(index);
29 return context; 29 return context;
30 } 30 }
31 31
32 main(List<String> arguments) => runMe(arguments, createContext); 32 main(List<String> arguments) => runMe(arguments, createContext);
OLDNEW
« no previous file with comments | « pkg/front_end/test/fasta/outline_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698