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

Side by Side Diff: dart/frog/tests/leg/src/SsaPhiEliminatorTest.dart

Issue 9689045: Library privacy. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
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("compiler_helper.dart"); 6 #import("compiler_helper.dart");
7 7
8 final String TEST_ONE = @""" 8 final String TEST_ONE = @"""
9 void foo(bar) { 9 void foo(bar) {
10 var a = 1; 10 var a = 1;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 """; 55 """;
56 56
57 main() { 57 main() {
58 String generated = compile(TEST_ONE, 'foo'); 58 String generated = compile(TEST_ONE, 'foo');
59 RegExp regexp = const RegExp(@"a = \(2\)"); 59 RegExp regexp = const RegExp(@"a = \(2\)");
60 Expect.isTrue(regexp.hasMatch(generated)); 60 Expect.isTrue(regexp.hasMatch(generated));
61 61
62 regexp = const RegExp(@"a = \(3\)"); 62 regexp = const RegExp(@"a = \(3\)");
63 Expect.isTrue(regexp.hasMatch(generated)); 63 Expect.isTrue(regexp.hasMatch(generated));
64 64
65 regexp = const RegExp(@"print\$1\(a\)"); 65 regexp = const RegExp(@"print\(a\)");
66 Expect.isTrue(regexp.hasMatch(generated)); 66 Expect.isTrue(regexp.hasMatch(generated));
67 67
68 generated = compile(TEST_TWO, 'main'); 68 generated = compile(TEST_TWO, 'main');
69 regexp = new RegExp("t = \\(?$anyIdentifier +"); 69 regexp = new RegExp("t = \\(?$anyIdentifier +");
70 Expect.isTrue(regexp.hasMatch(generated)); 70 Expect.isTrue(regexp.hasMatch(generated));
71 71
72 regexp = new RegExp("i = \\(?$anyIdentifier +"); 72 regexp = new RegExp("i = \\(?$anyIdentifier +");
73 Expect.isTrue(regexp.hasMatch(generated)); 73 Expect.isTrue(regexp.hasMatch(generated));
74 74
75 generated = compile(TEST_THREE, 'foo'); 75 generated = compile(TEST_THREE, 'foo');
(...skipping 10 matching lines...) Expand all
86 Expect.isTrue(regexp.hasMatch(generated)); 86 Expect.isTrue(regexp.hasMatch(generated));
87 87
88 generated = compile(TEST_FOUR, 'foo'); 88 generated = compile(TEST_FOUR, 'foo');
89 89
90 regexp = const RegExp("cond1 = cond1;"); 90 regexp = const RegExp("cond1 = cond1;");
91 Expect.isTrue(!regexp.hasMatch(generated)); 91 Expect.isTrue(!regexp.hasMatch(generated));
92 92
93 regexp = const RegExp("cond2 = cond2;"); 93 regexp = const RegExp("cond2 = cond2;");
94 Expect.isTrue(!regexp.hasMatch(generated)); 94 Expect.isTrue(!regexp.hasMatch(generated));
95 } 95 }
OLDNEW
« no previous file with comments | « dart/frog/tests/leg/src/PrettyParameterTest.dart ('k') | dart/frog/tests/leg/src/StaticClosureTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698