Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: tests/compiler/dart2js/serialization/model_test_helper.dart

Issue 2162053005: Split serialization tests further (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Rename Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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';
11 import 'package:compiler/src/closure.dart'; 11 import 'package:compiler/src/closure.dart';
12 import 'package:compiler/src/commandline_options.dart'; 12 import 'package:compiler/src/commandline_options.dart';
13 import 'package:compiler/src/common.dart'; 13 import 'package:compiler/src/common.dart';
14 import 'package:compiler/src/compiler.dart'; 14 import 'package:compiler/src/compiler.dart';
15 import 'package:compiler/src/deferred_load.dart'; 15 import 'package:compiler/src/deferred_load.dart';
16 import 'package:compiler/src/elements/elements.dart'; 16 import 'package:compiler/src/elements/elements.dart';
17 import 'package:compiler/src/filenames.dart'; 17 import 'package:compiler/src/filenames.dart';
18 import 'package:compiler/src/js_backend/js_backend.dart'; 18 import 'package:compiler/src/js_backend/js_backend.dart';
19 import 'package:compiler/src/serialization/equivalence.dart'; 19 import 'package:compiler/src/serialization/equivalence.dart';
20 import 'package:compiler/src/tree/nodes.dart'; 20 import 'package:compiler/src/tree/nodes.dart';
21 import 'package:compiler/src/universe/class_set.dart'; 21 import 'package:compiler/src/universe/class_set.dart';
22 import '../memory_compiler.dart'; 22 import '../memory_compiler.dart';
23 import 'helper.dart'; 23 import 'helper.dart';
24 import 'test_data.dart'; 24 import 'test_data.dart';
25 import 'test_helper.dart'; 25 import 'test_helper.dart';
26 26
27 /// Number of tests that are not part of the automatic test grouping.
28 int SKIP_COUNT = 2;
29
30 /// Number of groups that the [TESTS] are split into.
31 int SPLIT_COUNT = 4;
32
27 main(List<String> args) { 33 main(List<String> args) {
28 asyncTest(() async { 34 asyncTest(() async {
29 Arguments arguments = new Arguments.from(args); 35 Arguments arguments = new Arguments.from(args);
30 SerializedData serializedData = 36 SerializedData serializedData =
31 await serializeDartCore(arguments: arguments); 37 await serializeDartCore(arguments: arguments);
32 if (arguments.filename != null) { 38 if (arguments.filename != null) {
33 Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename)); 39 Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename));
34 SerializationResult result = await measure( 40 SerializationResult result = await measure(
35 '${entryPoint}', 'serialize', () { 41 '${entryPoint}', 'serialize', () {
36 return serialize( 42 return serialize(
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 OutputUnit outputUnit2 = 367 OutputUnit outputUnit2 =
362 compiler2.deferredLoadTask.outputUnitForElement(element2); 368 compiler2.deferredLoadTask.outputUnitForElement(element2);
363 check(outputUnit1, outputUnit2, 369 check(outputUnit1, outputUnit2,
364 'OutputUnit.isMainOutput for $element1 vs $element2', 370 'OutputUnit.isMainOutput for $element1 vs $element2',
365 outputUnit1.isMainOutput, outputUnit2.isMainOutput); 371 outputUnit1.isMainOutput, outputUnit2.isMainOutput);
366 checkSetEquivalence(outputUnit1, outputUnit2, 372 checkSetEquivalence(outputUnit1, outputUnit2,
367 'OutputUnit.imports for $element1 vs $element2', 373 'OutputUnit.imports for $element1 vs $element2',
368 outputUnit1.imports, outputUnit2.imports, 374 outputUnit1.imports, outputUnit2.imports,
369 (a, b) => areElementsEquivalent(a.declaration, b.declaration)); 375 (a, b) => areElementsEquivalent(a.declaration, b.declaration));
370 } 376 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698