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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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
« no previous file with comments | « tests/compiler/dart2js/code_motion_test.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 // 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";
9 import 'dart:uri'; 8 import 'dart:uri';
10 export 'dart:uri' show Uri; 9 export 'dart:uri' show Uri;
11 10
12 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t' 11 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t'
13 as lego; 12 as lego;
14 export '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t'; 13 export '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t';
15 14
16 import '../../../sdk/lib/_internal/compiler/implementation/js_backend/js_backend .dart' 15 import '../../../sdk/lib/_internal/compiler/implementation/js_backend/js_backend .dart'
17 as js; 16 as js;
18 17
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 final xRe = new RegExp('\\bx\\b'); 171 final xRe = new RegExp('\\bx\\b');
173 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)'); 172 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)');
174 final spaceRe = new RegExp('\\s+'); 173 final spaceRe = new RegExp('\\s+');
175 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)'); 174 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)');
176 if (shouldMatch) { 175 if (shouldMatch) {
177 Expect.isTrue(new RegExp(regexp).hasMatch(generated)); 176 Expect.isTrue(new RegExp(regexp).hasMatch(generated));
178 } else { 177 } else {
179 Expect.isFalse(new RegExp(regexp).hasMatch(generated)); 178 Expect.isFalse(new RegExp(regexp).hasMatch(generated));
180 } 179 }
181 } 180 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/code_motion_test.dart ('k') | tests/compiler/dart2js/compiler_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698