| 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 will all nulls. This may result in Dart exceptions or hangs, but | 6 // invoke them will all nulls. This may result in Dart exceptions or hangs, but |
| 7 // should never result in crashes or JavaScript exceptions. | 7 // should never result in crashes or JavaScript exceptions. |
| 8 | 8 |
| 9 library test.invoke_natives; | 9 library test.invoke_natives; |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // TODO(15274): Fix them and remove from blacklist. | 36 // TODO(15274): Fix them and remove from blacklist. |
| 37 'dart.io._IOService.dispatch', | 37 'dart.io._IOService.dispatch', |
| 38 new RegExp(r'.*_RandomAccessFile.*'), | 38 new RegExp(r'.*_RandomAccessFile.*'), |
| 39 'dart.io._StdIOUtils._socketType', | 39 'dart.io._StdIOUtils._socketType', |
| 40 'dart.io._StdIOUtils._getStdioOutputStream', | 40 'dart.io._StdIOUtils._getStdioOutputStream', |
| 41 'dart.io._Filter.newZLibInflateFilter', | 41 'dart.io._Filter.newZLibInflateFilter', |
| 42 'dart.io._Filter.newZLibDeflateFilter', | 42 'dart.io._Filter.newZLibDeflateFilter', |
| 43 'dart.io._FileSystemWatcher._listenOnSocket', | 43 'dart.io._FileSystemWatcher._listenOnSocket', |
| 44 'dart.io.SystemEncoding.decode', | 44 'dart.io.SystemEncoding.decode', |
| 45 'dart.io.SystemEncoding.encode', | 45 'dart.io.SystemEncoding.encode', |
| 46 'dart.core._Bigint._mulAdd', // TODO(regis): Is this an intrinsic issue? |
| 46 ]; | 47 ]; |
| 47 | 48 |
| 48 bool isBlacklisted(Symbol qualifiedSymbol) { | 49 bool isBlacklisted(Symbol qualifiedSymbol) { |
| 49 var qualifiedString = MirrorSystem.getName(qualifiedSymbol); | 50 var qualifiedString = MirrorSystem.getName(qualifiedSymbol); |
| 50 for (var pattern in blacklist) { | 51 for (var pattern in blacklist) { |
| 51 if (qualifiedString.contains(pattern)) return true; | 52 if (qualifiedString.contains(pattern)) return true; |
| 52 } | 53 } |
| 53 return false; | 54 return false; |
| 54 } | 55 } |
| 55 | 56 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 0, 0xEFFFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, | 157 0, 0xEFFFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, |
| 157 "foo", 'blåbærgrød', 'Îñţérñåţîöñåļîžåţîờñ']; | 158 "foo", 'blåbærgrød', 'Îñţérñåţîöñåļîžåţîờñ']; |
| 158 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); | 159 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); |
| 159 | 160 |
| 160 uncaughtErrorHandler(self, parent, zone, error, stack) {}; | 161 uncaughtErrorHandler(self, parent, zone, error, stack) {}; |
| 161 var zoneSpec = | 162 var zoneSpec = |
| 162 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); | 163 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); |
| 163 testZone = Zone.current.fork(specification: zoneSpec); | 164 testZone = Zone.current.fork(specification: zoneSpec); |
| 164 testZone.createTimer(Duration.ZERO, doOneTask); | 165 testZone.createTimer(Duration.ZERO, doOneTask); |
| 165 } | 166 } |
| OLD | NEW |