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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // Runtime exceptions we can't catch because they occur too early in event | 37 // Runtime exceptions we can't catch because they occur too early in event |
38 // dispatch to be caught in a zone. | 38 // dispatch to be caught in a zone. |
39 'dart.io._Timer._createTimer', /// smi: ok | 39 'dart.io._Timer._createTimer', /// smi: ok |
40 'dart.async.runZoned', /// string: ok | 40 'dart.async.runZoned', /// string: ok |
41 'dart.async._ScheduleImmediate._closure', | 41 'dart.async._ScheduleImmediate._closure', |
42 | 42 |
43 // These either cause the VM to segfault or throw uncatchable API errors. | 43 // These either cause the VM to segfault or throw uncatchable API errors. |
44 // TODO(15274): Fix them and remove from blacklist. | 44 // TODO(15274): Fix them and remove from blacklist. |
45 'dart.io._IOService.dispatch', | 45 'dart.io._IOService.dispatch', |
| 46 'dart.io._IOService._initialize', |
| 47 'dart.io._IOService._finalize', |
46 'dart.io._StdIOUtils._socketType', | 48 'dart.io._StdIOUtils._socketType', |
47 'dart.io._StdIOUtils._getStdioOutputStream', | 49 'dart.io._StdIOUtils._getStdioOutputStream', |
48 'dart.io._Filter.newZLibInflateFilter', | 50 'dart.io._Filter.newZLibInflateFilter', |
49 'dart.io._Filter.newZLibDeflateFilter', | 51 'dart.io._Filter.newZLibDeflateFilter', |
50 'dart.io._FileSystemWatcher._listenOnSocket', | 52 'dart.io._FileSystemWatcher._listenOnSocket', |
51 'dart.io.SystemEncoding.decode', // Windows only | 53 'dart.io.SystemEncoding.decode', // Windows only |
52 'dart.io.SystemEncoding.encode', // Windows only | 54 'dart.io.SystemEncoding.encode', // Windows only |
53 ]; | 55 ]; |
54 | 56 |
55 bool isBlacklisted(Symbol qualifiedSymbol) { | 57 bool isBlacklisted(Symbol qualifiedSymbol) { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 0, 0xEFFFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 3.14159, | 180 0, 0xEFFFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 3.14159, |
179 "foo", 'blåbærgrød', 'Îñţérñåţîöñåļîžåţîờñ', "𝄞", #symbol]; | 181 "foo", 'blåbærgrød', 'Îñţérñåţîöñåļîžåţîờñ', "𝄞", #symbol]; |
180 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); | 182 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); |
181 | 183 |
182 uncaughtErrorHandler(self, parent, zone, error, stack) {}; | 184 uncaughtErrorHandler(self, parent, zone, error, stack) {}; |
183 var zoneSpec = | 185 var zoneSpec = |
184 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); | 186 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); |
185 testZone = Zone.current.fork(specification: zoneSpec); | 187 testZone = Zone.current.fork(specification: zoneSpec); |
186 testZone.createTimer(Duration.ZERO, doOneTask); | 188 testZone.createTimer(Duration.ZERO, doOneTask); |
187 } | 189 } |
OLD | NEW |