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

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

Issue 1284673003: Move dart2jslib parts into separate libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix try. Created 5 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
« no previous file with comments | « tests/compiler/dart2js/unparser2_test.dart ('k') | tests/compiler/dart2js/use_strict_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "package:expect/expect.dart"; 5 import 'package:expect/expect.dart';
6 import 'parser_helper.dart'; 6 import 'parser_helper.dart';
7 import 'mock_compiler.dart';
8 import 'package:compiler/src/tree/tree.dart'; 7 import 'package:compiler/src/tree/tree.dart';
9 8
10 testUnparse(String statement) { 9 testUnparse(String statement) {
11 Node node = parseStatement(statement); 10 Node node = parseStatement(statement);
12 Expect.equals(statement, unparse(node)); 11 Expect.equals(statement, unparse(node));
13 } 12 }
14 13
15 testUnparseMember(String member) { 14 testUnparseMember(String member) {
16 Node node = parseMember(member); 15 Node node = parseMember(member);
17 Expect.equals(member, unparse(node)); 16 Expect.equals(member, unparse(node));
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 testPart(); 386 testPart();
388 testPartOf(); 387 testPartOf();
389 testCombinators(); 388 testCombinators();
390 testDeferredImport(); 389 testDeferredImport();
391 testRedirectingFactoryConstructors(); 390 testRedirectingFactoryConstructors();
392 testClassDeclarations(); 391 testClassDeclarations();
393 testMixinApplications(); 392 testMixinApplications();
394 testParameters(); 393 testParameters();
395 testSymbolLiterals(); 394 testSymbolLiterals();
396 } 395 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/unparser2_test.dart ('k') | tests/compiler/dart2js/use_strict_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698