| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_model_test; | 5 library dart2js.serialization_model_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
| 10 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 import 'package:compiler/src/universe/class_set.dart'; | 22 import 'package:compiler/src/universe/class_set.dart'; |
| 23 import '../memory_compiler.dart'; | 23 import '../memory_compiler.dart'; |
| 24 import 'helper.dart'; | 24 import 'helper.dart'; |
| 25 import 'test_data.dart'; | 25 import 'test_data.dart'; |
| 26 import 'test_helper.dart'; | 26 import 'test_helper.dart'; |
| 27 | 27 |
| 28 /// Number of tests that are not part of the automatic test grouping. | 28 /// Number of tests that are not part of the automatic test grouping. |
| 29 int SKIP_COUNT = 2; | 29 int SKIP_COUNT = 2; |
| 30 | 30 |
| 31 /// Number of groups that the [TESTS] are split into. | 31 /// Number of groups that the [TESTS] are split into. |
| 32 int SPLIT_COUNT = 4; | 32 int SPLIT_COUNT = 5; |
| 33 | 33 |
| 34 main(List<String> args) { | 34 main(List<String> args) { |
| 35 asyncTest(() async { | 35 asyncTest(() async { |
| 36 Arguments arguments = new Arguments.from(args); | 36 Arguments arguments = new Arguments.from(args); |
| 37 SerializedData serializedData = | 37 SerializedData serializedData = |
| 38 await serializeDartCore(arguments: arguments); | 38 await serializeDartCore(arguments: arguments); |
| 39 if (arguments.filename != null) { | 39 if (arguments.filename != null) { |
| 40 Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename)); | 40 Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename)); |
| 41 SerializationResult result = await measure( | 41 SerializationResult result = await measure( |
| 42 '${entryPoint}', 'serialize', () { | 42 '${entryPoint}', 'serialize', () { |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 void checkOutputUnits( | 406 void checkOutputUnits( |
| 407 OutputUnit outputUnit1, OutputUnit outputUnit2, String message) { | 407 OutputUnit outputUnit1, OutputUnit outputUnit2, String message) { |
| 408 if (outputUnit1 == null && outputUnit2 == null) return; | 408 if (outputUnit1 == null && outputUnit2 == null) return; |
| 409 check(outputUnit1, outputUnit2, | 409 check(outputUnit1, outputUnit2, |
| 410 'OutputUnit.isMainOutput $message', | 410 'OutputUnit.isMainOutput $message', |
| 411 outputUnit1.isMainOutput, outputUnit2.isMainOutput); | 411 outputUnit1.isMainOutput, outputUnit2.isMainOutput); |
| 412 checkSetEquivalence(outputUnit1, outputUnit2, | 412 checkSetEquivalence(outputUnit1, outputUnit2, |
| 413 'OutputUnit.imports $message', | 413 'OutputUnit.imports $message', |
| 414 outputUnit1.imports, outputUnit2.imports, | 414 outputUnit1.imports, outputUnit2.imports, |
| 415 (a, b) => areElementsEquivalent(a.declaration, b.declaration)); | 415 (a, b) => areElementsEquivalent(a.declaration, b.declaration)); |
| 416 } | 416 } |
| OLD | NEW |