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

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

Issue 1278503004: Revert "Move dart2jslib parts into separate libraries." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 import 'package:compiler/src/types/types.dart' show TypeMask; 7 import 'package:compiler/src/types/types.dart' show TypeMask;
8 import 'type_mask_test_helper.dart'; 8 import 'type_mask_test_helper.dart';
9 9
10 import 'compiler_helper.dart'; 10 import 'compiler_helper.dart';
11 import 'parser_helper.dart';
12 import 'type_mask_test_helper.dart';
11 13
12 const String TEST = """ 14 const String TEST = """
13 returnNum1(a) { 15 returnNum1(a) {
14 if (a) return 1; 16 if (a) return 1;
15 else return 2.5; 17 else return 2.5;
16 } 18 }
17 19
18 returnNum2(a) { 20 returnNum2(a) {
19 if (a) return 1.4; 21 if (a) return 1.4;
20 else return 2; 22 else return 2;
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 checkReturn('testSpecialization3', typesTask.uint31Type.nullable()); 871 checkReturn('testSpecialization3', typesTask.uint31Type.nullable());
870 checkReturn('testReturnNull1', typesTask.nullType); 872 checkReturn('testReturnNull1', typesTask.nullType);
871 checkReturn('testReturnNull2', typesTask.nullType); 873 checkReturn('testReturnNull2', typesTask.nullType);
872 checkReturn('testReturnNull3', typesTask.dynamicType); 874 checkReturn('testReturnNull3', typesTask.dynamicType);
873 checkReturn('testReturnNull4', typesTask.nullType); 875 checkReturn('testReturnNull4', typesTask.nullType);
874 checkReturn('testReturnNull5', typesTask.nullType); 876 checkReturn('testReturnNull5', typesTask.nullType);
875 checkReturn('testReturnNull6', typesTask.dynamicType); 877 checkReturn('testReturnNull6', typesTask.dynamicType);
876 checkReturn('testReturnNotEquals', typesTask.boolType); 878 checkReturn('testReturnNotEquals', typesTask.boolType);
877 })); 879 }));
878 } 880 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698