| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 library dart2js.reserialization_test; | 5 library dart2js.reserialization_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
| 9 import 'package:compiler/src/compiler.dart'; | 9 import 'package:compiler/src/compiler.dart'; |
| 10 import 'package:compiler/src/diagnostics/invariant.dart'; | 10 import 'package:compiler/src/diagnostics/invariant.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 import '../equivalence/check_functions.dart'; |
| 13 import 'helper.dart'; | 14 import 'helper.dart'; |
| 14 import 'test_helper.dart'; | |
| 15 import 'equivalence_test.dart'; | 15 import 'equivalence_test.dart'; |
| 16 | 16 |
| 17 main(List<String> args) { | 17 main(List<String> args) { |
| 18 // Ensure that we can print out constant expressions. | 18 // Ensure that we can print out constant expressions. |
| 19 DEBUG_MODE = true; | 19 DEBUG_MODE = true; |
| 20 | 20 |
| 21 Arguments arguments = new Arguments.from(args); | 21 Arguments arguments = new Arguments.from(args); |
| 22 Uri entryPoint; | 22 Uri entryPoint; |
| 23 if (arguments.filename != null) { | 23 if (arguments.filename != null) { |
| 24 entryPoint = Uri.parse(arguments.filename); | 24 entryPoint = Uri.parse(arguments.filename); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 library3, "No library found for ${library1.canonicalUri}."); | 66 library3, "No library found for ${library1.canonicalUri}."); |
| 67 checkLibraryContent('library1', 'library3', 'library', library1, library3); | 67 checkLibraryContent('library1', 'library3', 'library', library1, library3); |
| 68 } | 68 } |
| 69 | 69 |
| 70 checkAllResolvedAsts(compiler1, compiler2); | 70 checkAllResolvedAsts(compiler1, compiler2); |
| 71 checkAllResolvedAsts(compiler1, compiler3); | 71 checkAllResolvedAsts(compiler1, compiler3); |
| 72 | 72 |
| 73 checkAllImpacts(compiler1, compiler2); | 73 checkAllImpacts(compiler1, compiler2); |
| 74 checkAllImpacts(compiler1, compiler3); | 74 checkAllImpacts(compiler1, compiler3); |
| 75 } | 75 } |
| OLD | NEW |