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

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

Issue 23195002: Update test after disallowing uppercase letters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | 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"; 6 import "package:expect/expect.dart";
7 import 'compiler_helper.dart'; 7 import 'compiler_helper.dart';
8 8
9 main() { 9 main() {
10 var buffer = new StringBuffer(); 10 var buffer = new StringBuffer();
11 buffer.write("var foo("); 11 buffer.write("var foo(");
12 for (int i = 0; i < 2000; i++) { 12 for (int i = 0; i < 2000; i++) {
13 buffer.write("x$i, "); 13 buffer.write("x$i, ");
14 } 14 }
15 buffer.write("x) { int i = "); 15 buffer.write("x) { int i = ");
16 for (int i = 0; i < 2000; i++) { 16 for (int i = 0; i < 2000; i++) {
17 buffer.write("x$i+"); 17 buffer.write("x$i+");
18 } 18 }
19 buffer.write("2000; return i; }"); 19 buffer.write("2000; return i; }");
20 var generated = compile(buffer.toString(), entry: 'foo', minify: true); 20 var generated = compile(buffer.toString(), entry: 'foo', minify: true);
21 RegExp re = new RegExp(r"\(a,b,c"); 21 RegExp re = new RegExp(r"\(a,b,c");
22 Expect.isTrue(re.hasMatch(generated)); 22 Expect.isTrue(re.hasMatch(generated));
23 23
24 re = new RegExp(r"x,y,z,A,B,C"); 24 re = new RegExp(r"x,y,z,a0,a1,a2");
25 Expect.isTrue(re.hasMatch(generated)); 25 Expect.isTrue(re.hasMatch(generated));
26 26
27 re = new RegExp(r"Y,Z,a0,a1,a2,a3,a4,a5,a6"); 27 re = new RegExp(r"y,z,a0,a1,a2,a3,a4,a5,a6");
28 Expect.isTrue(re.hasMatch(generated)); 28 Expect.isTrue(re.hasMatch(generated));
29 29
30 re = new RegExp(r"g8,g9,h0,h1"); 30 re = new RegExp(r"g8,g9,h0,h1");
31 Expect.isTrue(re.hasMatch(generated)); 31 Expect.isTrue(re.hasMatch(generated));
32 32
33 re = new RegExp(r"Z8,Z9,aa0,aa1,aa2"); 33 re = new RegExp(r"z8,z9,aa0,aa1,aa2");
34 Expect.isTrue(re.hasMatch(generated)); 34 Expect.isTrue(re.hasMatch(generated));
35 35
36 re = new RegExp(r"aa9,ab0,ab1"); 36 re = new RegExp(r"aa9,ab0,ab1");
37 Expect.isTrue(re.hasMatch(generated)); 37 Expect.isTrue(re.hasMatch(generated));
38 38
39 re = new RegExp(r"aZ9,ba0,ba1"); 39 re = new RegExp(r"az9,ba0,ba1");
40 Expect.isTrue(re.hasMatch(generated)); 40 Expect.isTrue(re.hasMatch(generated));
41 } 41 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698