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

Side by Side Diff: tests/compiler/dart2js/constant_namer_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 7
7 const String TEST_ONE = r""" 8 const String TEST_ONE = r"""
8 class Token { 9 class Token {
9 final name; 10 final name;
10 final value; 11 final value;
11 const Token(this.name, [this.value]); 12 const Token(this.name, [this.value]);
12 use() { print(this); } 13 use() { print(this); }
13 } 14 }
14 test() { 15 test() {
(...skipping 11 matching lines...) Expand all
26 } 27 }
27 28
28 var generated = compile(TEST_ONE, entry: 'test'); 29 var generated = compile(TEST_ONE, entry: 'test');
29 30
30 check(generated, '.List_12_53.'); 31 check(generated, '.List_12_53.');
31 check(generated, '.Token_start_null.'); 32 check(generated, '.Token_start_null.');
32 check(generated, '.Token_end_null.'); 33 check(generated, '.Token_end_null.');
33 check(generated, '.Token_yes_12.'); 34 check(generated, '.Token_yes_12.');
34 check(generated, '.Token_true_false.'); 35 check(generated, '.Token_true_false.');
35 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698