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

Side by Side Diff: tests/compiler/dart2js/simple_inferrer_postfix_prefix_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 'compiler_helper.dart'; 6 import 'compiler_helper.dart';
6 import 'parser_helper.dart'; 7 import 'parser_helper.dart';
7 8
8 const String TEST = """ 9 const String TEST = """
9 10
10 class A { 11 class A {
11 get foo => 'string'; 12 get foo => 'string';
12 set foo(value) {} 13 set foo(value) {}
13 operator[](index) => 'string'; 14 operator[](index) => 'string';
14 operator[]=(index, value) {} 15 operator[]=(index, value) {}
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 checkReturnInClass('A', 'returnDynamic2', subclassOfInterceptor); 85 checkReturnInClass('A', 'returnDynamic2', subclassOfInterceptor);
85 checkReturnInClass('A', 'returnDynamic3', typesInferrer.dynamicType); 86 checkReturnInClass('A', 'returnDynamic3', typesInferrer.dynamicType);
86 87
87 checkReturnInClass('B', 'returnString1', typesInferrer.stringType); 88 checkReturnInClass('B', 'returnString1', typesInferrer.stringType);
88 checkReturnInClass('B', 'returnString2', typesInferrer.stringType); 89 checkReturnInClass('B', 'returnString2', typesInferrer.stringType);
89 checkReturnInClass('B', 'returnDynamic1', typesInferrer.dynamicType); 90 checkReturnInClass('B', 'returnDynamic1', typesInferrer.dynamicType);
90 checkReturnInClass('B', 'returnDynamic2', typesInferrer.dynamicType); 91 checkReturnInClass('B', 'returnDynamic2', typesInferrer.dynamicType);
91 checkReturnInClass('B', 'returnDynamic3', typesInferrer.dynamicType); 92 checkReturnInClass('B', 'returnDynamic3', typesInferrer.dynamicType);
92 checkReturnInClass('B', 'returnDynamic4', typesInferrer.dynamicType); 93 checkReturnInClass('B', 'returnDynamic4', typesInferrer.dynamicType);
93 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698