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

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

Issue 44033002: Update status file, and fix unit tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'compiler_helper.dart'; 6 import 'compiler_helper.dart';
7 7
8 const String TEST_ONE = r""" 8 const String TEST_ONE = r"""
9 foo(a) { 9 foo(a) {
10 var myVariableName = a.toString(); 10 var myVariableName = a.toString();
(...skipping 19 matching lines...) Expand all
30 Expect.isTrue(generated.contains(new RegExp(r'[$A-Z]+\.toString\$0\(a\)'))); 30 Expect.isTrue(generated.contains(new RegExp(r'[$A-Z]+\.toString\$0\(a\)')));
31 Expect.isTrue(generated.contains('myVariableName')); 31 Expect.isTrue(generated.contains('myVariableName'));
32 32
33 // Check that an intercepted getter that does not need to be 33 // Check that an intercepted getter that does not need to be
34 // intercepted, is turned into a regular getter call or field 34 // intercepted, is turned into a regular getter call or field
35 // access. 35 // access.
36 generated = compile(TEST_TWO, entry: 'foo'); 36 generated = compile(TEST_TWO, entry: 'foo');
37 Expect.isFalse(generated.contains(r'a.get$length()')); 37 Expect.isFalse(generated.contains(r'a.get$length()'));
38 Expect.isTrue(generated.contains(new RegExp(r'[$A-Z]+\.A\$\(\)\.length'))); 38 Expect.isTrue(generated.contains(new RegExp(r'[$A-Z]+\.A\$\(\)\.length')));
39 Expect.isTrue( 39 Expect.isTrue(
40 generated.contains(new RegExp(r'[$A-Z]+\.get\$length\$a\(a\)'))); 40 generated.contains(new RegExp(r'[$A-Z]+\.get\$length\$as\(a\)')));
floitsch 2013/10/25 11:57:02 I have to trust on this one. If you are not sure,
ngeoffray 2013/10/25 11:58:03 Because we instantiate the string class now, the i
floitsch 2013/10/25 12:20:39 ok. makes sense.
41 } 41 }
OLDNEW
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698