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

Side by Side Diff: pkg/analyzer2dart/test/sexpr_test.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « pkg/analyzer2dart/test/driver_test.dart ('k') | pkg/analyzer2dart/test/tree_shaker_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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Unittest test of the CPS ir generated by the analyzer2dart compiler. 5 /// Unittest test of the CPS ir generated by the analyzer2dart compiler.
6 6
7 import 'mock_sdk.dart'; 7 import 'mock_sdk.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/src/generated/element.dart'; 9 import 'package:analyzer/src/generated/element.dart';
10 import 'package:analyzer/src/generated/sdk.dart'; 10 import 'package:analyzer/src/generated/sdk.dart';
11 import 'package:analyzer/src/generated/source.dart'; 11 import 'package:analyzer/src/generated/source.dart';
12 import 'package:compiler/implementation/cps_ir/cps_ir_nodes_sexpr.dart'; 12 import 'package:compiler/src/cps_ir/cps_ir_nodes_sexpr.dart';
13 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 14
15 import '../lib/src/closed_world.dart'; 15 import '../lib/src/closed_world.dart';
16 import '../lib/src/driver.dart'; 16 import '../lib/src/driver.dart';
17 import '../lib/src/converted_world.dart'; 17 import '../lib/src/converted_world.dart';
18 import 'output_helper.dart'; 18 import 'output_helper.dart';
19 import 'test_helper.dart'; 19 import 'test_helper.dart';
20 import 'sexpr_data.dart'; 20 import 'sexpr_data.dart';
21 21
22 main() { 22 main() {
(...skipping 14 matching lines...) Expand all
37 ClosedWorld world = driver.computeWorld(entryPoint); 37 ClosedWorld world = driver.computeWorld(entryPoint);
38 ConvertedWorld convertedWorld = convertWorld(world); 38 ConvertedWorld convertedWorld = convertWorld(world);
39 String output = convertedWorld.getIr(convertedWorld.mainFunction) 39 String output = convertedWorld.getIr(convertedWorld.mainFunction)
40 .accept(new SExpressionStringifier()); 40 .accept(new SExpressionStringifier());
41 expect(output, equals(expectedOutput), 41 expect(output, equals(expectedOutput),
42 reason: 'Input:\n$input\n' 42 reason: 'Input:\n$input\n'
43 'Expected:\n$expectedOutput\n' 43 'Expected:\n$expectedOutput\n'
44 'Actual:\n$output'); 44 'Actual:\n$output');
45 } 45 }
46 46
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/test/driver_test.dart ('k') | pkg/analyzer2dart/test/tree_shaker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698