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

Side by Side Diff: dart/tests/compiler/dart2js/cpa_inference_test.dart

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import 'dart:async'; 5 import 'dart:async';
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; 8 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart';
9 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'; 9 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart';
10 import '../../../sdk/lib/_internal/compiler/implementation/types/concrete_types_ inferrer.dart'; 10 import '../../../sdk/lib/_internal/compiler/implementation/types/concrete_types_ inferrer.dart';
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 result.checkNodeHasType('dNull', maybe(expectedDType)); 1344 result.checkNodeHasType('dNull', maybe(expectedDType));
1345 final expectedEType = [result.int]; 1345 final expectedEType = [result.int];
1346 result.checkNodeHasType('e', expectedEType); 1346 result.checkNodeHasType('e', expectedEType);
1347 result.checkNodeHasType('eNull', maybe(expectedEType)); 1347 result.checkNodeHasType('eNull', maybe(expectedEType));
1348 final expectedFType = [result.double]; 1348 final expectedFType = [result.double];
1349 result.checkNodeHasType('f', expectedFType); 1349 result.checkNodeHasType('f', expectedFType);
1350 result.checkNodeHasType('fNull', maybe(expectedFType)); 1350 result.checkNodeHasType('fNull', maybe(expectedFType));
1351 final expectedGType = [result.num]; 1351 final expectedGType = [result.num];
1352 result.checkNodeHasType('g', expectedGType); 1352 result.checkNodeHasType('g', expectedGType);
1353 result.checkNodeHasType('gNull', maybe(expectedGType)); 1353 result.checkNodeHasType('gNull', maybe(expectedGType));
1354 final expectedHType = [result.bool]; 1354 final expectedType = [result.bool];
1355 result.checkNodeHasType('h', expectedHType); 1355 result.checkNodeHasType('h', expectedType);
1356 result.checkNodeHasType('hNull', maybe(expectedHType)); 1356 result.checkNodeHasType('hNull', maybe(expectedType));
1357 final expectedIType = [result.base('A'), result.base('B'), 1357 final expectedIType = [result.base('A'), result.base('B'),
1358 result.base('BB'), result.base('C'), 1358 result.base('BB'), result.base('C'),
1359 result.base('D')]; 1359 result.base('D')];
1360 result.checkNodeHasType('i', expectedIType); 1360 result.checkNodeHasType('i', expectedIType);
1361 result.checkNodeHasType('iNull', maybe(expectedIType)); 1361 result.checkNodeHasType('iNull', maybe(expectedIType));
1362 result.checkNodeHasType('j', []); 1362 result.checkNodeHasType('j', []);
1363 }); 1363 });
1364 } 1364 }
1365 1365
1366 testJsCallAugmentsSeenClasses() { 1366 testJsCallAugmentsSeenClasses() {
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1701 testIsCheck, 1701 testIsCheck,
1702 testSeenClasses, 1702 testSeenClasses,
1703 testIntDoubleNum, 1703 testIntDoubleNum,
1704 testConcreteTypeToTypeMask, 1704 testConcreteTypeToTypeMask,
1705 testSelectors, 1705 testSelectors,
1706 testMixins, 1706 testMixins,
1707 testClosures, 1707 testClosures,
1708 testNestedFunctions, 1708 testNestedFunctions,
1709 ], (f) => f())); 1709 ], (f) => f()));
1710 } 1710 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js/compiler_helper.dart ('k') | dart/tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698