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

Side by Side Diff: tests/compiler/dart2js/compiler_helper.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « tests/compiler/dart2js/compiler_alt.dart ('k') | tests/compiler/dart2js/compiler_test.dart » ('j') | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library compiler_helper; 5 library compiler_helper;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 9
10 import 'package:compiler/implementation/elements/elements.dart' 10 import 'package:compiler/src/elements/elements.dart'
11 as lego; 11 as lego;
12 export 'package:compiler/implementation/elements/elements.dart'; 12 export 'package:compiler/src/elements/elements.dart';
13 13
14 import 'package:compiler/implementation/js_backend/js_backend.dart' 14 import 'package:compiler/src/js_backend/js_backend.dart'
15 as js; 15 as js;
16 16
17 import 'package:compiler/implementation/dart2jslib.dart' 17 import 'package:compiler/src/dart2jslib.dart'
18 as leg; 18 as leg;
19 export 'package:compiler/implementation/dart2jslib.dart' 19 export 'package:compiler/src/dart2jslib.dart'
20 show Constant, 20 show Constant,
21 Message, 21 Message,
22 MessageKind, 22 MessageKind,
23 Selector, 23 Selector,
24 TypedSelector, 24 TypedSelector,
25 SourceSpan, 25 SourceSpan,
26 World; 26 World;
27 27
28 import 'package:compiler/implementation/ssa/ssa.dart' as ssa; 28 import 'package:compiler/src/ssa/ssa.dart' as ssa;
29 29
30 import 'package:compiler/implementation/types/types.dart' 30 import 'package:compiler/src/types/types.dart'
31 as types; 31 as types;
32 export 'package:compiler/implementation/types/types.dart' 32 export 'package:compiler/src/types/types.dart'
33 show TypeMask; 33 show TypeMask;
34 34
35 import 'package:compiler/implementation/util/util.dart'; 35 import 'package:compiler/src/util/util.dart';
36 export 'package:compiler/implementation/util/util.dart'; 36 export 'package:compiler/src/util/util.dart';
37 37
38 import 'package:compiler/implementation/source_file.dart'; 38 import 'package:compiler/src/source_file.dart';
39 39
40 import 'package:compiler/implementation/dart2jslib.dart' 40 import 'package:compiler/src/dart2jslib.dart'
41 show Compiler; 41 show Compiler;
42 42
43 export 'package:compiler/implementation/tree/tree.dart'; 43 export 'package:compiler/src/tree/tree.dart';
44 44
45 import 'mock_compiler.dart'; 45 import 'mock_compiler.dart';
46 export 'mock_compiler.dart'; 46 export 'mock_compiler.dart';
47 47
48 Future<String> compile(String code, 48 Future<String> compile(String code,
49 {String entry: 'main', 49 {String entry: 'main',
50 bool enableTypeAssertions: false, 50 bool enableTypeAssertions: false,
51 bool minify: false, 51 bool minify: false,
52 bool analyzeAll: false, 52 bool analyzeAll: false,
53 bool disableInlining: true, 53 bool disableInlining: true,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)'); 251 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)');
252 final spaceRe = new RegExp('\\s+'); 252 final spaceRe = new RegExp('\\s+');
253 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)'); 253 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)');
254 if (shouldMatch) { 254 if (shouldMatch) {
255 Expect.isTrue(new RegExp(regexp).hasMatch(generated)); 255 Expect.isTrue(new RegExp(regexp).hasMatch(generated));
256 } else { 256 } else {
257 Expect.isFalse(new RegExp(regexp).hasMatch(generated)); 257 Expect.isFalse(new RegExp(regexp).hasMatch(generated));
258 } 258 }
259 }); 259 });
260 } 260 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/compiler_alt.dart ('k') | tests/compiler/dart2js/compiler_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698