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

Side by Side Diff: pkg/analyzer/test/stress/for_git_repository.dart

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (Closed)
Patch Set: Created 4 years, 2 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) 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 analyzer.test.stress.limited_invalidation; 5 library analyzer.test.stress.limited_invalidation;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
11 import 'package:analyzer/dart/element/element.dart'; 11 import 'package:analyzer/dart/element/element.dart';
12 import 'package:analyzer/dart/element/type.dart'; 12 import 'package:analyzer/dart/element/type.dart';
13 import 'package:analyzer/error/error.dart'; 13 import 'package:analyzer/error/error.dart';
14 import 'package:analyzer/file_system/file_system.dart' as fs; 14 import 'package:analyzer/file_system/file_system.dart' as fs;
15 import 'package:analyzer/file_system/physical_file_system.dart'; 15 import 'package:analyzer/file_system/physical_file_system.dart';
16 import 'package:analyzer/src/context/builder.dart'; 16 import 'package:analyzer/src/context/builder.dart';
17 import 'package:analyzer/src/context/cache.dart'; 17 import 'package:analyzer/src/context/cache.dart';
18 import 'package:analyzer/src/context/context.dart'; 18 import 'package:analyzer/src/context/context.dart';
19 import 'package:analyzer/src/dart/ast/utilities.dart'; 19 import 'package:analyzer/src/dart/ast/utilities.dart';
20 import 'package:analyzer/src/dart/element/member.dart'; 20 import 'package:analyzer/src/dart/element/member.dart';
21 import 'package:analyzer/src/dart/sdk/sdk.dart'; 21 import 'package:analyzer/src/dart/sdk/sdk.dart';
22 import 'package:analyzer/src/generated/engine.dart'; 22 import 'package:analyzer/src/generated/engine.dart';
23 import 'package:analyzer/src/generated/sdk.dart'; 23 import 'package:analyzer/src/generated/sdk.dart';
24 import 'package:analyzer/src/generated/source.dart'; 24 import 'package:analyzer/src/generated/source.dart';
25 import 'package:analyzer/src/generated/utilities_collection.dart'; 25 import 'package:analyzer/src/generated/utilities_collection.dart';
26 import 'package:analyzer/src/task/dart.dart'; 26 import 'package:analyzer/src/task/dart.dart';
27 import 'package:analyzer/task/general.dart'; 27 import 'package:analyzer/task/general.dart';
28 import 'package:analyzer/task/model.dart'; 28 import 'package:analyzer/task/model.dart';
29 import 'package:path/path.dart' as path; 29 import 'package:path/path.dart' as path;
30 import 'package:unittest/unittest.dart'; 30 import 'package:test/test.dart';
31 31
32 main() { 32 main() {
33 new StressTest().run(); 33 new StressTest().run();
34 } 34 }
35 35
36 void _failTypeMismatch(Object actual, Object expected, {String reason}) { 36 void _failTypeMismatch(Object actual, Object expected, {String reason}) {
37 String message = 'Actual $actual is ${actual.runtimeType}, ' 37 String message = 'Actual $actual is ${actual.runtimeType}, '
38 'but expected $expected is ${expected.runtimeType}'; 38 'but expected $expected is ${expected.runtimeType}';
39 if (reason != null) { 39 if (reason != null) {
40 message += ' $reason'; 40 message += ' $reason';
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 pairwiseCompare(expectedArguments, (a, b) { 628 pairwiseCompare(expectedArguments, (a, b) {
629 _verifyTypes(a, b, '$desc typeArguments'); 629 _verifyTypes(a, b, '$desc typeArguments');
630 return true; 630 return true;
631 }, 'elements')); 631 }, 'elements'));
632 } else { 632 } else {
633 _failTypeMismatch(actual, expected); 633 _failTypeMismatch(actual, expected);
634 } 634 }
635 } 635 }
636 } 636 }
637 } 637 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698