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

Side by Side Diff: tests/standalone/vmservice/isolate_class_field_test.dart

Issue 25873005: Compile error on const instance variables (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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
« no previous file with comments | « tests/standalone/vmservice/field_script.dart ('k') | no next file » | 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 library isolate_class_list_test; 5 library isolate_class_list_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'test_helper.dart'; 8 import 'test_helper.dart';
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 Expect.equals(true, field['guard_nullable']); 90 Expect.equals(true, field['guard_nullable']);
91 Expect.equals('variable', field['guard_length']); 91 Expect.equals('variable', field['guard_length']);
92 } 92 }
93 93
94 _testFieldC(Map field) { 94 _testFieldC(Map field) {
95 Expect.equals('Field', field['type']); 95 Expect.equals('Field', field['type']);
96 Expect.equals('c', field['user_name']); 96 Expect.equals('c', field['user_name']);
97 Expect.equals('c', field['name']); 97 Expect.equals('c', field['name']);
98 Expect.equals(true, field['final']); 98 Expect.equals(true, field['final']);
99 Expect.equals(false, field['static']); 99 Expect.equals(false, field['static']);
100 Expect.equals(true, field['const']); 100 Expect.equals(true, field['final']);
101 Expect.equals('int', field['guard_class']['user_name']); 101 Expect.equals('int', field['guard_class']['user_name']);
102 Expect.equals(false, field['guard_nullable']); 102 Expect.equals(false, field['guard_nullable']);
103 Expect.equals('variable', field['guard_length']); 103 Expect.equals('variable', field['guard_length']);
104 } 104 }
105 105
106 _testFieldFinalFixedLengthList(Map field) { 106 _testFieldFinalFixedLengthList(Map field) {
107 Expect.equals('Field', field['type']); 107 Expect.equals('Field', field['type']);
108 Expect.equals('final_fixed_length_list', field['user_name']); 108 Expect.equals('final_fixed_length_list', field['user_name']);
109 Expect.equals('final_fixed_length_list', field['name']); 109 Expect.equals('final_fixed_length_list', field['name']);
110 Expect.equals('Float32List', field['guard_class']['user_name']); 110 Expect.equals('Float32List', field['guard_class']['user_name']);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 new BadBananaClassTest(port, test._isolateId, 180 new BadBananaClassTest(port, test._isolateId,
181 classTableTest.bad_banana_class_id); 181 classTableTest.bad_banana_class_id);
182 Future.wait([bananaClassTest.makeRequest(), 182 Future.wait([bananaClassTest.makeRequest(),
183 badBananaClassTest.makeRequest()]).then((_) { 183 badBananaClassTest.makeRequest()]).then((_) {
184 process.requestExit(); 184 process.requestExit();
185 }); 185 });
186 }); 186 });
187 }); 187 });
188 }); 188 });
189 } 189 }
OLDNEW
« no previous file with comments | « tests/standalone/vmservice/field_script.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698