Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: tests/lib/mirrors/invocation_fuzz_test.dart

Issue 503363002: Defer execution of the main isolate's entry point until the message loop. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix test Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 import 'dart:mirrors'; 11 import 'dart:mirrors';
12 import 'dart:async'; 12 import 'dart:async';
13 import 'package:expect/expect.dart'; 13 import 'package:expect/expect.dart';
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 // Don't recurse on this test. 17 // Don't recurse on this test.
18 'test.invoke_natives', 18 'test.invoke_natives',
19 19
20 // Don't exit the test pre-maturely. 20 // Don't exit the test pre-maturely.
21 'dart.io.exit', 21 'dart.io.exit',
22 22
23 // Don't run blocking io calls. 23 // Don't run blocking io calls.
24 new RegExp(r".*Sync$"), 24 new RegExp(r".*Sync$"),
25 25
26 // These prevent the test from exiting. 26 // These prevent the test from exiting.
27 'dart.async._scheduleAsyncCallback', 27 'dart.async._scheduleAsyncCallback',
28 'dart.async._setTimerFactoryClosure', 28 'dart.async._setTimerFactoryClosure',
29 29
30 'dart.isolate._startMainIsolate',
30 'dart.isolate._startIsolate', 31 'dart.isolate._startIsolate',
31 'dart.io.sleep', 32 'dart.io.sleep',
32 'dart.io.HttpServer.HttpServer.listenOn', 33 'dart.io.HttpServer.HttpServer.listenOn',
33 34
34 // These either cause the VM to segfault or throw uncatchable API errors. 35 // These either cause the VM to segfault or throw uncatchable API errors.
35 // TODO(15274): Fix them and remove from blacklist. 36 // TODO(15274): Fix them and remove from blacklist.
36 'dart.io._IOService.dispatch', 37 'dart.io._IOService.dispatch',
37 new RegExp(r'.*_RandomAccessFile.*'), 38 new RegExp(r'.*_RandomAccessFile.*'),
38 'dart.io._StdIOUtils._socketType', 39 'dart.io._StdIOUtils._socketType',
39 'dart.io._StdIOUtils._getStdioOutputStream', 40 'dart.io._StdIOUtils._getStdioOutputStream',
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 0, 0xEFFFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 156 0, 0xEFFFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF,
156 "foo", 'blåbærgrød', 'Îñţérñåţîöñåļîžåţîờñ']; 157 "foo", 'blåbærgrød', 'Îñţérñåţîöñåļîžåţîờñ'];
157 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object')); 158 valueObjects.forEach((v) => checkInstance(reflect(v), 'value object'));
158 159
159 uncaughtErrorHandler(self, parent, zone, error, stack) {}; 160 uncaughtErrorHandler(self, parent, zone, error, stack) {};
160 var zoneSpec = 161 var zoneSpec =
161 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler); 162 new ZoneSpecification(handleUncaughtError: uncaughtErrorHandler);
162 testZone = Zone.current.fork(specification: zoneSpec); 163 testZone = Zone.current.fork(specification: zoneSpec);
163 testZone.createTimer(Duration.ZERO, doOneTask); 164 testZone.createTimer(Duration.ZERO, doOneTask);
164 } 165 }
OLDNEW
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698