OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |