| 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.serialization.native_data_test; | 5 library dart2js.serialization.native_data_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/common/names.dart'; | 9 import 'package:compiler/src/common/names.dart'; |
| 10 import 'package:compiler/src/commandline_options.dart'; | 10 import 'package:compiler/src/commandline_options.dart'; |
| 11 import 'package:compiler/src/compiler.dart'; | 11 import 'package:compiler/src/compiler.dart'; |
| 12 import 'package:compiler/src/js_backend/js_backend.dart'; | 12 import 'package:compiler/src/js_backend/js_backend.dart'; |
| 13 import 'package:compiler/src/js_backend/native_data.dart'; | 13 import 'package:compiler/src/js_backend/native_data.dart'; |
| 14 import 'package:compiler/src/filenames.dart'; | 14 import 'package:compiler/src/filenames.dart'; |
| 15 import 'package:compiler/src/serialization/equivalence.dart'; | 15 import 'package:compiler/src/serialization/equivalence.dart'; |
| 16 import 'package:compiler/src/world.dart'; | 16 import 'package:compiler/src/world.dart'; |
| 17 import '../equivalence/check_helpers.dart'; |
| 17 import '../memory_compiler.dart'; | 18 import '../memory_compiler.dart'; |
| 18 import 'helper.dart'; | 19 import 'helper.dart'; |
| 19 import 'test_helper.dart'; | |
| 20 | 20 |
| 21 main(List<String> args) { | 21 main(List<String> args) { |
| 22 asyncTest(() async { | 22 asyncTest(() async { |
| 23 Arguments arguments = new Arguments.from(args); | 23 Arguments arguments = new Arguments.from(args); |
| 24 Uri uri = Uris.dart_html; | 24 Uri uri = Uris.dart_html; |
| 25 if (arguments.filename != null) { | 25 if (arguments.filename != null) { |
| 26 uri = Uri.base.resolve(nativeToUriPath(arguments.filename)); | 26 uri = Uri.base.resolve(nativeToUriPath(arguments.filename)); |
| 27 } | 27 } |
| 28 await checkNativeData(uri, verbose: arguments.verbose); | 28 await checkNativeData(uri, verbose: arguments.verbose); |
| 29 }); | 29 }); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 verbose: verbose); | 100 verbose: verbose); |
| 101 | 101 |
| 102 checkMaps( | 102 checkMaps( |
| 103 nativeData1.nativeFieldStoreBehavior, | 103 nativeData1.nativeFieldStoreBehavior, |
| 104 nativeData2.nativeFieldStoreBehavior, | 104 nativeData2.nativeFieldStoreBehavior, |
| 105 "NativeData.nativeFieldStoreBehavior", | 105 "NativeData.nativeFieldStoreBehavior", |
| 106 areElementsEquivalent, | 106 areElementsEquivalent, |
| 107 testNativeBehavior, | 107 testNativeBehavior, |
| 108 verbose: verbose); | 108 verbose: verbose); |
| 109 } | 109 } |
| OLD | NEW |