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

Side by Side Diff: tests/compiler/dart2js/minify_many_locals_test.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/metadata_test.dart ('k') | tests/compiler/dart2js/mirrors_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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 that parameters keep their names in the output. 4 // Test that parameters keep their names in the output.
5 5
6 import "package:expect/expect.dart";
7 import 'compiler_helper.dart'; 6 import 'compiler_helper.dart';
8 7
9 main() { 8 main() {
10 var buffer = new StringBuffer(); 9 var buffer = new StringBuffer();
11 buffer.write("var foo("); 10 buffer.write("var foo(");
12 for (int i = 0; i < 2000; i++) { 11 for (int i = 0; i < 2000; i++) {
13 buffer.write("x$i, "); 12 buffer.write("x$i, ");
14 } 13 }
15 buffer.write("x) { int i = "); 14 buffer.write("x) { int i = ");
16 for (int i = 0; i < 2000; i++) { 15 for (int i = 0; i < 2000; i++) {
(...skipping 15 matching lines...) Expand all
32 31
33 re = new RegExp(r"Z8,Z9,aa0,aa1,aa2"); 32 re = new RegExp(r"Z8,Z9,aa0,aa1,aa2");
34 Expect.isTrue(re.hasMatch(generated)); 33 Expect.isTrue(re.hasMatch(generated));
35 34
36 re = new RegExp(r"aa9,ab0,ab1"); 35 re = new RegExp(r"aa9,ab0,ab1");
37 Expect.isTrue(re.hasMatch(generated)); 36 Expect.isTrue(re.hasMatch(generated));
38 37
39 re = new RegExp(r"aZ9,ba0,ba1"); 38 re = new RegExp(r"aZ9,ba0,ba1");
40 Expect.isTrue(re.hasMatch(generated)); 39 Expect.isTrue(re.hasMatch(generated));
41 } 40 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/metadata_test.dart ('k') | tests/compiler/dart2js/mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698