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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | 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 "package:expect/expect.dart";
8 import "dart:uri"; 9 import "dart:uri";
9 10
10 import "../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t" 11 import "../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t"
11 as lego; 12 as lego;
12 import "../../../sdk/lib/_internal/compiler/implementation/js_backend/js_backend .dart" 13 import "../../../sdk/lib/_internal/compiler/implementation/js_backend/js_backend .dart"
13 as js; 14 as js;
14 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart" 15 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart"
15 as leg; 16 as leg;
16 import "../../../sdk/lib/_internal/compiler/implementation/ssa/ssa.dart" as ssa; 17 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/util/util.dart";
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 final xRe = new RegExp('\\bx\\b'); 127 final xRe = new RegExp('\\bx\\b');
127 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)'); 128 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)');
128 final spaceRe = new RegExp('\\s+'); 129 final spaceRe = new RegExp('\\s+');
129 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)'); 130 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)');
130 if (shouldMatch) { 131 if (shouldMatch) {
131 Expect.isTrue(new RegExp(regexp).hasMatch(generated)); 132 Expect.isTrue(new RegExp(regexp).hasMatch(generated));
132 } else { 133 } else {
133 Expect.isFalse(new RegExp(regexp).hasMatch(generated)); 134 Expect.isFalse(new RegExp(regexp).hasMatch(generated));
134 } 135 }
135 } 136 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698