Chromium Code Reviews| 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 various basic values (nulls, ints, etc). This may result in | 6 // invoke them will various basic values (nulls, ints, etc). This may result in |
|
zra
2015/01/05 16:39:22
will -> with
regis
2017/01/13 02:34:46
Done.
| |
| 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; |
| 11 | 11 |
| 12 import 'dart:mirrors'; | 12 import 'dart:mirrors'; |
| 13 import 'dart:async'; | 13 import 'dart:async'; |
| 14 | 14 |
| 15 // Methods to be skipped, by qualified name. | 15 // Methods to be skipped, by qualified name. |
| 16 var blacklist = [ | 16 var blacklist = [ |
| 17 // TODO(regis): investigate. | |
| 18 'dart.core._Montgomery._invDigitPair', | |
| 19 | |
| 17 // Don't recurse on this test. | 20 // Don't recurse on this test. |
| 18 'test.invoke_natives', | 21 'test.invoke_natives', |
| 19 | 22 |
| 20 // Don't exit the test pre-maturely. | 23 // Don't exit the test pre-maturely. |
| 21 'dart.io.exit', | 24 'dart.io.exit', |
| 22 | 25 |
| 23 // Don't change the exit code, which may fool the test harness. | 26 // Don't change the exit code, which may fool the test harness. |
| 24 'dart.io.exitCode', | 27 'dart.io.exitCode', |
| 25 | 28 |
| 26 // Don't run blocking io calls. | 29 // Don't run blocking io calls. |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 0, 0xEFFFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 3.14159, | 178 0, 0xEFFFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 3.14159, |
| 176 "foo", 'blåbærgrød', 'Îñţérñåţîöñåļîžåţîờñ', "𝄞", #symbol]; | 179 "foo", 'blåbærgrød', 'Îñţérñåţîöñåļîžåţîờñ', "𝄞", #symbol]; |
| 177 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); | 180 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); |
| 178 | 181 |
| 179 uncaughtErrorHandler(self, parent, zone, error, stack) {}; | 182 uncaughtErrorHandler(self, parent, zone, error, stack) {}; |
| 180 var zoneSpec = | 183 var zoneSpec = |
| 181 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); | 184 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); |
| 182 testZone = Zone.current.fork(specification: zoneSpec); | 185 testZone = Zone.current.fork(specification: zoneSpec); |
| 183 testZone.createTimer(Duration.ZERO, doOneTask); | 186 testZone.createTimer(Duration.ZERO, doOneTask); |
| 184 } | 187 } |
| OLD | NEW |