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

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

Issue 11368150: Updated tests/compiler/* to use new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 const String FOO = r""" 8 const String FOO = r"""
9 void foo(var a, var b) { 9 void foo(var a, var b) {
10 } 10 }
11 """; 11 """;
12 12
13 13
14 const String BAR = r""" 14 const String BAR = r"""
15 void bar(var eval, var $eval) { 15 void bar(var eval, var $eval) {
16 } 16 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 regexp = const RegExp(r"a = 2;"); 101 regexp = const RegExp(r"a = 2;");
102 Iterator matches = regexp.allMatches(generated).iterator(); 102 Iterator matches = regexp.allMatches(generated).iterator();
103 Expect.isTrue(matches.hasNext); 103 Expect.isTrue(matches.hasNext);
104 matches.next(); 104 matches.next();
105 Expect.isFalse(matches.hasNext); 105 Expect.isFalse(matches.hasNext);
106 106
107 generated = compile(PARAMETER_INIT, entry: 'foo'); 107 generated = compile(PARAMETER_INIT, entry: 'foo');
108 regexp = const RegExp("var result = start;"); 108 regexp = const RegExp("var result = start;");
109 Expect.isTrue(regexp.hasMatch(generated)); 109 Expect.isTrue(regexp.hasMatch(generated));
110 } 110 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/parameter_phi_elimination_test.dart ('k') | tests/compiler/dart2js/redundant_phi_eliminator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698