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

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

Issue 11368008: Avoid duplicated imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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 4
5 #import('parser_helper.dart'); 5 import 'parser_helper.dart';
6 #import("../../../lib/compiler/implementation/scanner/scannerlib.dart"); 6 import '../../../lib/compiler/implementation/tree/tree.dart';
7 #import("../../../lib/compiler/implementation/tree/tree.dart");
8
9 7
10 void testNode(Node node, String expected, String text, [bool hard = true]) { 8 void testNode(Node node, String expected, String text, [bool hard = true]) {
11 var debug = 'text=$text,expected=$expected,node:${node}'; 9 var debug = 'text=$text,expected=$expected,node:${node}';
12 Expect.isNotNull(node, debug); 10 Expect.isNotNull(node, debug);
13 11
14 Token beginToken = node.getBeginToken(); 12 Token beginToken = node.getBeginToken();
15 Expect.isNotNull(beginToken, debug); 13 Expect.isNotNull(beginToken, debug);
16 Token endToken = node.getEndToken(); 14 Token endToken = node.getEndToken();
17 Expect.isNotNull(endToken, debug); 15 Expect.isNotNull(endToken, debug);
18 16
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 testNode(sendSet.assignmentOperator, "++", text); 163 testNode(sendSet.assignmentOperator, "++", text);
166 testNode(sendSet.arguments.head, "b", text); 164 testNode(sendSet.arguments.head, "b", text);
167 } 165 }
168 166
169 void main() { 167 void main() {
170 testUnaryExpression(); 168 testUnaryExpression();
171 testAssignment(); 169 testAssignment();
172 testIndex(); 170 testIndex();
173 testPostfix(); 171 testPostfix();
174 } 172 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js/backend_htype_list_test.dart ('k') | dart/tests/compiler/dart2js/call_site_type_inferer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698