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

Side by Side Diff: tests/compiler/dart2js/backend_dart/sexpr2_test.dart

Issue 690103004: 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
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 dart2dart compiler. 5 /// Unittest test of the CPS ir generated by the dart2dart compiler.
6 library dart_backend.sexpr2_test; 6 library dart_backend.sexpr2_test;
7 7
8 import 'package:compiler/implementation/dart2jslib.dart'; 8 import 'package:compiler/src/dart2jslib.dart';
9 import 'package:compiler/implementation/cps_ir/cps_ir_nodes_sexpr.dart'; 9 import 'package:compiler/src/cps_ir/cps_ir_nodes_sexpr.dart';
10 import 'package:expect/expect.dart'; 10 import 'package:expect/expect.dart';
11 11
12 import '../../../../pkg/analyzer2dart/test/test_helper.dart'; 12 import '../../../../pkg/analyzer2dart/test/test_helper.dart';
13 import '../../../../pkg/analyzer2dart/test/sexpr_data.dart'; 13 import '../../../../pkg/analyzer2dart/test/sexpr_data.dart';
14 14
15 import 'test_helper.dart'; 15 import 'test_helper.dart';
16 16
17 main() { 17 main() {
18 performTests(TEST_DATA, asyncTester, (TestSpec result) { 18 performTests(TEST_DATA, asyncTester, (TestSpec result) {
19 return compilerFor(result.input).then((Compiler compiler) { 19 return compilerFor(result.input).then((Compiler compiler) {
20 String expectedOutput = result.output.trim(); 20 String expectedOutput = result.output.trim();
21 String output = compiler.irBuilder.getIr(compiler.mainFunction) 21 String output = compiler.irBuilder.getIr(compiler.mainFunction)
22 .accept(new SExpressionStringifier()).trim(); 22 .accept(new SExpressionStringifier()).trim();
23 Expect.equals(expectedOutput, output, 23 Expect.equals(expectedOutput, output,
24 '\nInput:\n${result.input}\n' 24 '\nInput:\n${result.input}\n'
25 'Expected:\n$expectedOutput\n' 25 'Expected:\n$expectedOutput\n'
26 'Actual:\n$output\n'); 26 'Actual:\n$output\n');
27 }); 27 });
28 }); 28 });
29 } 29 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/backend_dart/opt_shrinking_test.dart ('k') | tests/compiler/dart2js/backend_dart/sexpr_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698