| OLD | NEW |
| 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/src/dart2jslib.dart'; | 8 import 'package:compiler/src/compiler.dart'; |
| 9 import 'package:compiler/src/cps_ir/cps_ir_nodes.dart'; | 9 import 'package:compiler/src/cps_ir/cps_ir_nodes.dart'; |
| 10 import 'package:compiler/src/cps_ir/cps_ir_nodes_sexpr.dart'; | 10 import 'package:compiler/src/cps_ir/cps_ir_nodes_sexpr.dart'; |
| 11 import 'package:compiler/src/elements/elements.dart'; | 11 import 'package:compiler/src/elements/elements.dart'; |
| 12 import 'package:expect/expect.dart'; | 12 import 'package:expect/expect.dart'; |
| 13 | 13 |
| 14 import '../../../../pkg/analyzer2dart/test/test_helper.dart'; | 14 import '../../../../pkg/analyzer2dart/test/test_helper.dart'; |
| 15 import '../../../../pkg/analyzer2dart/test/sexpr_data.dart'; | 15 import '../../../../pkg/analyzer2dart/test/sexpr_data.dart'; |
| 16 | 16 |
| 17 import 'test_helper.dart'; | 17 import 'test_helper.dart'; |
| 18 | 18 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 element = cls.localLookup( | 53 element = cls.localLookup( |
| 54 elementName.substring(elementName.indexOf('.') + 1)); | 54 elementName.substring(elementName.indexOf('.') + 1)); |
| 55 } else { | 55 } else { |
| 56 element = compiler.mainApp.localLookup(elementName); | 56 element = compiler.mainApp.localLookup(elementName); |
| 57 } | 57 } |
| 58 checkOutput(elementName, element, output); | 58 checkOutput(elementName, element, output); |
| 59 }); | 59 }); |
| 60 } | 60 } |
| 61 }); | 61 }); |
| 62 } | 62 } |
| OLD | NEW |