OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This test reflectively enumerates all the methods in the system and tries to | 5 // This test reflectively enumerates all the methods in the system and tries to |
6 // invoke them with various basic values (nulls, ints, etc). This may result in | 6 // invoke them with various basic values (nulls, ints, etc). This may result in |
7 // Dart exceptions or hangs, but should never result in crashes or JavaScript | 7 // Dart exceptions or hangs, but should never result in crashes or JavaScript |
8 // exceptions. | 8 // exceptions. |
9 | 9 |
10 library test.invoke_natives; | 10 library test.invoke_natives; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 0xFFFFFFFFFFFFFFFF, | 183 0xFFFFFFFFFFFFFFFF, |
184 3.14159, | 184 3.14159, |
185 "foo", | 185 "foo", |
186 'blåbærgrød', | 186 'blåbærgrød', |
187 'Îñţérñåţîöñåļîžåţîờñ', | 187 'Îñţérñåţîöñåļîžåţîờñ', |
188 "\u{1D11E}", | 188 "\u{1D11E}", |
189 #symbol | 189 #symbol |
190 ]; | 190 ]; |
191 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); | 191 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); |
192 | 192 |
193 uncaughtErrorHandler(self, parent, zone, error, stack) {} | 193 void uncaughtErrorHandler(self, parent, zone, error, stack) {} |
194 ; | 194 |
195 var zoneSpec = | 195 var zoneSpec = |
196 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); | 196 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); |
197 testZone = Zone.current.fork(specification: zoneSpec); | 197 testZone = Zone.current.fork(specification: zoneSpec); |
198 testZone.createTimer(Duration.ZERO, doOneTask); | 198 testZone.createTimer(Duration.ZERO, doOneTask); |
199 } | 199 } |
OLD | NEW |