| 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'; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 ClosedWorld closedWorld2 = | 51 ClosedWorld closedWorld2 = |
| 52 compiler2.closeResolution(elementEnvironment2.mainFunction).closedWorld; | 52 compiler2.closeResolution(elementEnvironment2.mainFunction).closedWorld; |
| 53 | 53 |
| 54 NativeBasicDataImpl nativeBasicData1 = | 54 NativeBasicDataImpl nativeBasicData1 = |
| 55 compiler1.frontendStrategy.nativeBasicData; | 55 compiler1.frontendStrategy.nativeBasicData; |
| 56 NativeBasicDataImpl nativeBasicData2 = | 56 NativeBasicDataImpl nativeBasicData2 = |
| 57 compiler2.frontendStrategy.nativeBasicData; | 57 compiler2.frontendStrategy.nativeBasicData; |
| 58 NativeDataImpl nativeData1 = closedWorld1.nativeData; | 58 NativeDataImpl nativeData1 = closedWorld1.nativeData; |
| 59 NativeDataImpl nativeData2 = closedWorld2.nativeData; | 59 NativeDataImpl nativeData2 = closedWorld2.nativeData; |
| 60 | 60 |
| 61 checkMaps( | 61 checkMaps(nativeData1.jsInteropLibraries, nativeData2.jsInteropLibraries, |
| 62 nativeData1.jsInteropLibraryNames, | 62 "NativeData.jsInteropLibraryNames", areElementsEquivalent, equality, |
| 63 nativeData2.jsInteropLibraryNames, | |
| 64 "NativeData.jsInteropLibraryNames", | |
| 65 areElementsEquivalent, | |
| 66 equality, | |
| 67 verbose: verbose); | 63 verbose: verbose); |
| 68 | 64 |
| 69 checkMaps(nativeData1.jsInteropClassNames, nativeData2.jsInteropClassNames, | 65 checkMaps(nativeData1.jsInteropClasses, nativeData2.jsInteropClasses, |
| 70 "NativeData.jsInteropClassNames", areElementsEquivalent, equality, | 66 "NativeData.jsInteropClassNames", areElementsEquivalent, equality, |
| 71 verbose: verbose); | 67 verbose: verbose); |
| 72 | 68 |
| 73 checkMaps(nativeData1.jsInteropMemberNames, nativeData2.jsInteropMemberNames, | 69 checkMaps(nativeData1.jsInteropMembers, nativeData2.jsInteropMembers, |
| 74 "NativeData.jsInteropMemberNames", areElementsEquivalent, equality, | 70 "NativeData.jsInteropMemberNames", areElementsEquivalent, equality, |
| 75 verbose: verbose); | 71 verbose: verbose); |
| 76 | 72 |
| 77 checkMaps(nativeData1.nativeMemberName, nativeData2.nativeMemberName, | 73 checkMaps(nativeData1.nativeMemberName, nativeData2.nativeMemberName, |
| 78 "NativeData.nativeMemberName", areElementsEquivalent, equality, | 74 "NativeData.nativeMemberName", areElementsEquivalent, equality, |
| 79 verbose: verbose); | 75 verbose: verbose); |
| 80 | 76 |
| 81 checkMaps( | 77 checkMaps( |
| 82 nativeBasicData1.nativeClassTagInfo, | 78 nativeBasicData1.nativeClassTagInfo, |
| 83 nativeBasicData2.nativeClassTagInfo, | 79 nativeBasicData2.nativeClassTagInfo, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 103 verbose: verbose); | 99 verbose: verbose); |
| 104 | 100 |
| 105 checkMaps( | 101 checkMaps( |
| 106 nativeData1.nativeFieldStoreBehavior, | 102 nativeData1.nativeFieldStoreBehavior, |
| 107 nativeData2.nativeFieldStoreBehavior, | 103 nativeData2.nativeFieldStoreBehavior, |
| 108 "NativeData.nativeFieldStoreBehavior", | 104 "NativeData.nativeFieldStoreBehavior", |
| 109 areElementsEquivalent, | 105 areElementsEquivalent, |
| 110 testNativeBehavior, | 106 testNativeBehavior, |
| 111 verbose: verbose); | 107 verbose: verbose); |
| 112 } | 108 } |
| OLD | NEW |