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

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

Issue 13493011: Fix some tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' 6 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'
6 show TypeMask; 7 show TypeMask;
7 8
8 import 'compiler_helper.dart'; 9 import 'compiler_helper.dart';
9 10
10 const String TEST = """ 11 const String TEST = """
11 returnInt1() { 12 returnInt1() {
12 var a = 42; 13 var a = 42;
13 try { 14 try {
14 a = 54; 15 a = 54;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 var subclassOfInterceptor = 175 var subclassOfInterceptor =
175 findTypeMask(compiler, 'Interceptor', 'nonNullSubclass'); 176 findTypeMask(compiler, 'Interceptor', 'nonNullSubclass');
176 177
177 checkReturn('returnDyn1', subclassOfInterceptor); 178 checkReturn('returnDyn1', subclassOfInterceptor);
178 checkReturn('returnDyn2', subclassOfInterceptor); 179 checkReturn('returnDyn2', subclassOfInterceptor);
179 checkReturn('returnDyn3', subclassOfInterceptor); 180 checkReturn('returnDyn3', subclassOfInterceptor);
180 checkReturn('returnDyn4', subclassOfInterceptor); 181 checkReturn('returnDyn4', subclassOfInterceptor);
181 checkReturn('returnDyn5', subclassOfInterceptor); 182 checkReturn('returnDyn5', subclassOfInterceptor);
182 checkReturn('returnDyn6', typesInferrer.dynamicType); 183 checkReturn('returnDyn6', typesInferrer.dynamicType);
183 } 184 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698