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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 3.14159, | 200 3.14159, |
201 () {}, | 201 () {}, |
202 "foo", | 202 "foo", |
203 'blåbærgrød', | 203 'blåbærgrød', |
204 'Îñţérñåţîöñåļîžåţîờñ', | 204 'Îñţérñåţîöñåļîžåţîờñ', |
205 "\u{1D11E}", | 205 "\u{1D11E}", |
206 #symbol | 206 #symbol |
207 ]; | 207 ]; |
208 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); | 208 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); |
209 | 209 |
210 void uncaughtErrorHandler(self, parent, zone, error, stack) {} | 210 uncaughtErrorHandler(self, parent, zone, error, stack) {} |
211 | 211 ; |
212 var zoneSpec = | 212 var zoneSpec = |
213 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); | 213 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); |
214 testZone = Zone.current.fork(specification: zoneSpec); | 214 testZone = Zone.current.fork(specification: zoneSpec); |
215 testZone.createTimer(Duration.ZERO, doOneTask); | 215 testZone.createTimer(Duration.ZERO, doOneTask); |
216 } | 216 } |
OLD | NEW |