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

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

Issue 11358024: Changes outside pkg/ and lib/ for directory refactoring (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
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 // Test constant folding. 4 // Test constant folding.
5 5
6 library compiler_helper; 6 library compiler_helper;
7 7
8 import "dart:uri"; 8 import "dart:uri";
9 9
10 import "../../../lib/compiler/implementation/elements/elements.dart" as lego; 10 import "../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t"
11 import "../../../lib/compiler/implementation/js_backend/js_backend.dart" as js; 11 as lego;
12 import "../../../lib/compiler/implementation/dart2jslib.dart" as leg; 12 import "../../../sdk/lib/_internal/compiler/implementation/js_backend/js_backend .dart"
13 import "../../../lib/compiler/implementation/ssa/ssa.dart" as ssa; 13 as js;
14 import "../../../lib/compiler/implementation/util/util.dart"; 14 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart"
15 import '../../../lib/compiler/implementation/source_file.dart'; 15 as leg;
16 import "../../../sdk/lib/_internal/compiler/implementation/ssa/ssa.dart" as ssa;
17 import "../../../sdk/lib/_internal/compiler/implementation/util/util.dart";
18 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart';
16 19
17 import "mock_compiler.dart"; 20 import "mock_compiler.dart";
18 import "parser_helper.dart"; 21 import "parser_helper.dart";
19 22
20 String compile(String code, {String entry: 'main', 23 String compile(String code, {String entry: 'main',
21 bool enableTypeAssertions: false, 24 bool enableTypeAssertions: false,
22 bool minify: false}) { 25 bool minify: false}) {
23 MockCompiler compiler = 26 MockCompiler compiler =
24 new MockCompiler(enableTypeAssertions: enableTypeAssertions, 27 new MockCompiler(enableTypeAssertions: enableTypeAssertions,
25 enableMinification: minify); 28 enableMinification: minify);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)'); 117 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)');
115 final spaceRe = new RegExp('\\s+'); 118 final spaceRe = new RegExp('\\s+');
116 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)'); 119 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)');
117 if (shouldMatch) { 120 if (shouldMatch) {
118 Expect.isTrue(new RegExp(regexp).hasMatch(generated)); 121 Expect.isTrue(new RegExp(regexp).hasMatch(generated));
119 } else { 122 } else {
120 Expect.isFalse(new RegExp(regexp).hasMatch(generated)); 123 Expect.isFalse(new RegExp(regexp).hasMatch(generated));
121 } 124 }
122 } 125 }
123 126
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698