mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
Move isolate tests to lib/isolate.
Moves most tests that require dart:isolate to the isolate-directory in the tests section. Also enables the string_from_environment_default_value_test which didn't have "_test" in its name. R=lrn@google.com Review URL: https://codereview.chromium.org//1133983002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45701 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
ec774a1b36
commit
f4a1b28077
|
@ -4,17 +4,14 @@
|
|||
|
||||
[ $compiler == none && ($runtime == drt || $runtime == dartium || $runtime == ContentShellOnAndroid) ]
|
||||
bool_from_environment2_test: Skip
|
||||
bool_from_environment_default_value_test: Skip
|
||||
bool_from_environment_test: Skip
|
||||
from_environment_const_type_test: Skip
|
||||
from_environment_const_type_undefined_test: Skip
|
||||
int_from_environment2_test: Skip
|
||||
int_from_environment3_test: Skip
|
||||
int_from_environment_default_value_test: Skip
|
||||
int_from_environment_test: Skip
|
||||
string_from_environment2_test: Skip
|
||||
string_from_environment3_test: Skip
|
||||
string_from_environment_default_value: Skip
|
||||
string_from_environment_test: Skip
|
||||
|
||||
[ $compiler == none ]
|
||||
|
@ -215,7 +212,6 @@ big_integer_parsed_mul_div_vm_test: Pass, Slow
|
|||
[ $compiler == dart2js && $cps_ir ]
|
||||
apply2_test: Crash # Instance of 'TypeOperator': type check unimplemented for _Nullary.
|
||||
apply_test: Crash # (test0): handleStaticFunctionGet: function(test0)
|
||||
bool_from_environment_default_value_test: Crash # (test): handleStaticFunctionGet: function(test)
|
||||
collection_removes_test: RuntimeError # Please triage this failure.
|
||||
collection_to_string_test: Crash # Instance of 'TypeOperator': type check unimplemented for List.
|
||||
compare_to2_test: Crash # Instance of 'TypeOperator': type check unimplemented for List.
|
||||
|
@ -249,7 +245,6 @@ hash_set_test/none: Crash # (testIdentitySet): handleStaticFunctionGet: function
|
|||
hash_set_type_check_test: Crash # Instance of 'TypeOperator': type check unimplemented for _Nullary.
|
||||
hashcode_test: Crash # (bar): handleStaticFunctionGet: function(bar)
|
||||
indexed_list_access_test: Crash # (getIt): handleStaticFunctionGet: function(getIt)
|
||||
int_from_environment_default_value_test: Crash # (test): handleStaticFunctionGet: function(test)
|
||||
int_parse_radix_test/01: Crash # Please triage this failure.
|
||||
int_parse_radix_test/02: Crash # Please triage this failure.
|
||||
int_parse_radix_test/none: Crash # Please triage this failure.
|
||||
|
|
|
@ -31,7 +31,8 @@ compile_time_error_test/none: Pass, Slow
|
|||
browser/*: SkipByDesign # Browser specific tests
|
||||
|
||||
[ $compiler == dart2js && $runtime == jsshell ]
|
||||
pause_test: Fail # non-zero timer not supported.
|
||||
pause_test: Fail, OK # non-zero timer not supported.
|
||||
timer_isolate_test: Fail, OK # Needs Timer to run.
|
||||
|
||||
[ $compiler == dart2js && $runtime == safari ]
|
||||
cross_isolate_message_test: Skip # Issue 12627
|
||||
|
@ -50,6 +51,7 @@ message3_test/constList_identical: RuntimeError # Issue 21817
|
|||
message3_test/constMap: RuntimeError # Issue 21817
|
||||
message3_test/constInstance: RuntimeError # Issue 21817
|
||||
browser/issue_12474_test: CompileTimeError # Issue 22529
|
||||
enum_const_test/02: RuntimeError # Issue 21817
|
||||
|
||||
[ $compiler == dart2js && $jscl ]
|
||||
spawn_uri_test: SkipByDesign # Loading another file is not supported in JS shell
|
||||
|
@ -81,6 +83,7 @@ nested_spawn2_test: Skip # Issue 19127: This test is timing out.
|
|||
spawn_uri_nested_vm_test: Skip # Issue 14479: This test is timing out.
|
||||
|
||||
[ $compiler == none && ( $runtime == dartium || $runtime == drt || $runtime == ContentShellOnAndroid) ]
|
||||
typed_message_test: Crash, Fail # Issue 13921, 14400
|
||||
message_enum_test: Fail, OK # Issue 13921 Dom isolates don't support spawnFunction
|
||||
compile_time_error_test/none: Fail, OK # Issue 13921 Dom isolates don't support spawnFunction
|
||||
isolate_import_test/none: Fail, OK # Issue 13921 Dom isolates don't support spawnFunction
|
||||
|
@ -103,6 +106,11 @@ kill_self_test: Fail, OK # 13921 Dom isolates don't support spawnFunction
|
|||
handle_error_test: Fail, OK # 13921 Dom isolates don't support spawnFunction
|
||||
handle_error2_test: Fail, OK # 13921 Dom isolates don't support spawnFunction
|
||||
handle_error3_test: Fail, OK # 13921 Dom isolates don't support spawnFunction
|
||||
timer_isolate_test: Fail, Pass # Issue 15487. Issue 13921: Dom isolates don't support spawnFunction
|
||||
deferred_in_isolate_test: Fail, OK # Issue 16209, 13921 Dom isolates don't support spawnFunction
|
||||
bool_from_environment_default_value_test: Skip
|
||||
int_from_environment_default_value_test: Skip
|
||||
string_from_environment_default_value_test: Skip
|
||||
|
||||
[ $compiler == dartanalyzer || $compiler == dart2analyzer ]
|
||||
browser/typed_data_message_test: StaticWarning
|
||||
|
@ -112,6 +120,7 @@ mint_maker_test: StaticWarning
|
|||
package_root_test: SkipByDesign # Uses dart:io.
|
||||
|
||||
[ $compiler == dart2js && $cps_ir ]
|
||||
bool_from_environment_default_value_test: Crash # (test): handleStaticFunctionGet: function(test)
|
||||
compile_time_error_test/01: Crash # (entry): handleStaticFunctionGet: function(entry)
|
||||
compile_time_error_test/none: Crash # (entry): handleStaticFunctionGet: function(entry)
|
||||
count_test: Crash # (main): handleStaticFunctionGet: function(main)
|
||||
|
@ -122,6 +131,7 @@ handle_error3_test: Crash # (isomain1): handleStaticFunctionGet: function(isomai
|
|||
handle_error_test: Crash # (isomain1): handleStaticFunctionGet: function(isomain1)
|
||||
illegal_msg_function_test: Crash # (main): handleStaticFunctionGet: function(main)
|
||||
illegal_msg_mirror_test: Crash # (main): handleStaticFunctionGet: function(main)
|
||||
int_from_environment_default_value_test: Crash # (test): handleStaticFunctionGet: function(test)
|
||||
isolate_complex_messages_test: Crash # (main): handleStaticFunctionGet: function(main)
|
||||
isolate_current_test: Crash # (i2l): handleStaticFunctionGet: function(i2l)
|
||||
isolate_import_test/01: Crash # (entry): handleStaticFunctionGet: function(entry)
|
||||
|
@ -164,4 +174,8 @@ spawn_uri_multi_test/none: Crash # unsupported element kind: _defaultEnvironment
|
|||
stacktrace_message_test: Crash # (main): handleStaticFunctionGet: function(main)
|
||||
start_paused_test: Crash # (notyet): handleStaticFunctionGet: function(notyet)
|
||||
static_function_test: Crash # (main): handleStaticFunctionGet: function(main)
|
||||
string_from_environment_default_value_test: Crash # (test): handleStaticFunctionGet: function(test)
|
||||
timer_isolate_test: Crash # cannot compile methods that need interceptor calling convention.
|
||||
typed_message_test: Crash # (logMessages): handleStaticFunctionGet: function(logMessages)
|
||||
unresolved_ports_test: Crash # (main): handleStaticFunctionGet: function(main)
|
||||
|
||||
|
|
|
@ -71,7 +71,6 @@ vm/type_vm_test: Fail # Issue 14651.
|
|||
|
||||
[ $compiler == none && ( $runtime == dartium || $runtime == drt || $runtime == ContentShellOnAndroid) ]
|
||||
issue13474_test: Pass, Fail # Issue 14651.
|
||||
typed_message_test: Crash, Fail # Issue 13921, 14400
|
||||
vm/optimized_guarded_field_isolates_test: Fail # Issue 13921.
|
||||
main_test/01: Fail # Issue 20028
|
||||
main_test/02: Fail # Issue 20028
|
||||
|
|
|
@ -174,8 +174,6 @@ generic_closure_test: RuntimeError # Issue 12605
|
|||
const_switch_test/02: RuntimeError # Issue 17960
|
||||
const_switch_test/04: RuntimeError # Issue 17960
|
||||
|
||||
enum_const_test/02: RuntimeError # Issue 21817
|
||||
|
||||
const_dynamic_type_literal_test/02: CompileTimeError # Issue 23009
|
||||
const_dynamic_type_literal_test/03: CompileTimeError # Issue 23009
|
||||
|
||||
|
@ -1143,7 +1141,6 @@ type_variable_nested_test: Crash # Instance of 'TypeOperator': type check unimpl
|
|||
type_variable_scope2_test: Crash # Instance of 'TypeOperator': type check unimplemented for Foo.
|
||||
type_variable_typedef_test: Crash # (foo): handleStaticFunctionGet: function(foo)
|
||||
typed_equality_test: Crash # Instance of 'TypeOperator': type casts not implemented.
|
||||
typed_message_test: Crash # (logMessages): handleStaticFunctionGet: function(logMessages)
|
||||
typedef_is_test: Crash # Instance of 'TypeOperator': type check unimplemented for Func1.
|
||||
typevariable_substitution2_test/01: Crash # Please triage this failure.
|
||||
typevariable_substitution2_test/02: Crash # Please triage this failure.
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
String f() => "hi";
|
|
@ -1,21 +0,0 @@
|
|||
import 'dart:isolate';
|
||||
import 'dart:async';
|
||||
import 'package:unittest/unittest.dart';
|
||||
|
||||
import 'deferred_in_isolate_lib.dart' deferred as lib;
|
||||
|
||||
loadDeferred(port) {
|
||||
lib.loadLibrary().then((_) {
|
||||
port.send(lib.f());
|
||||
});
|
||||
}
|
||||
|
||||
main() {
|
||||
test("Deferred loading in isolate", () {
|
||||
ReceivePort port = new ReceivePort();
|
||||
port.first.then(expectAsync((msg) {
|
||||
expect(msg, equals("hi"));
|
||||
}));
|
||||
Isolate.spawn(loadDeferred, port.sendPort);
|
||||
});
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
||||
// for details. All rights reserved. Use of this source code is governed by a
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
library deferred_api_library;
|
||||
|
||||
foo(x) {
|
||||
print('foo($x)');
|
||||
return 42;
|
||||
}
|
|
@ -6,7 +6,6 @@ library future_test;
|
|||
|
||||
import "package:expect/expect.dart";
|
||||
import 'dart:async';
|
||||
import 'dart:isolate';
|
||||
|
||||
main() {
|
||||
compare(func) {
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
library stream_controller_async_test;
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:isolate';
|
||||
import "package:expect/expect.dart";
|
||||
import 'package:unittest/unittest.dart';
|
||||
import 'event_helper.dart';
|
||||
|
|
|
@ -6,7 +6,6 @@ library stream_controller_async_test;
|
|||
|
||||
import "package:expect/expect.dart";
|
||||
import 'dart:async';
|
||||
import 'dart:isolate';
|
||||
import 'package:unittest/unittest.dart';
|
||||
import 'event_helper.dart';
|
||||
import 'stream_state_helper.dart';
|
||||
|
|
|
@ -6,7 +6,6 @@ library stream_controller_async_test;
|
|||
|
||||
import "package:expect/expect.dart";
|
||||
import 'dart:async';
|
||||
import 'dart:isolate';
|
||||
import 'package:unittest/unittest.dart';
|
||||
import 'event_helper.dart';
|
||||
import 'stream_state_helper.dart';
|
||||
|
|
|
@ -7,7 +7,6 @@ library stream_single_test;
|
|||
|
||||
import "package:expect/expect.dart";
|
||||
import 'dart:async';
|
||||
import 'dart:isolate';
|
||||
import 'package:unittest/unittest.dart';
|
||||
import 'event_helper.dart';
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ library stream_single_test;
|
|||
|
||||
import "package:expect/expect.dart";
|
||||
import 'dart:async';
|
||||
import 'dart:isolate';
|
||||
import 'package:unittest/unittest.dart';
|
||||
import 'event_helper.dart';
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
library timer_cancel_test;
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:isolate';
|
||||
import 'package:unittest/unittest.dart';
|
||||
|
||||
main() {
|
||||
|
|
|
@ -138,7 +138,6 @@ async/multiple_timer_test: RuntimeError,OK # Needs Timer to run.
|
|||
async/timer_cancel_test: RuntimeError,OK # Needs Timer to run.
|
||||
async/timer_cancel1_test: RuntimeError,OK # Needs Timer to run.
|
||||
async/timer_cancel2_test: RuntimeError,OK # Needs Timer to run.
|
||||
async/timer_isolate_test: Fail, OK # Needs Timer to run.
|
||||
async/timer_repeat_test: RuntimeError,OK # Needs Timer to run.
|
||||
async/timer_test: RuntimeError,OK # Needs Timer to run.
|
||||
async/stream_controller_async_test: RuntimeError # Timer interface not supported; Issue 7728.
|
||||
|
@ -244,7 +243,6 @@ async/schedule_microtask6_test: Fail # Issue 10910
|
|||
async/timer_test: Fail, Pass # Issue 15487
|
||||
async/multiple_timer_test: Fail, Pass # Issue 15487
|
||||
async/stream_periodic3_test: Fail, Pass # Issue 15487
|
||||
async/timer_isolate_test: Fail, Pass # Issue 15487. Issue 13921: spawnFunction is not allowed on Dartium's DOM thread.
|
||||
async/timer_isActive_test: Fail, Pass # Issue 22352
|
||||
mirrors/immutable_collections_test: SkipSlow # Dartium debug uses -O0, so this will just timeout and waste bot cycles.
|
||||
mirrors/mirrors_reader_test: SkipSlow # Dartium debug uses -O0, so this will just timeout and waste bot cycles.
|
||||
|
@ -269,10 +267,6 @@ mirrors/mirrors_reader_test: SkipSlow # Times out. Issue 19127
|
|||
[ $compiler == dart2js && $runtime == safarimobilesim ]
|
||||
mirrors/mirrors_reader_test: SkipSlow # Times out. Issue 20806.
|
||||
|
||||
[ $compiler == none && ($runtime == drt || $runtime == dartium || $runtime == ContentShellOnAndroid) ]
|
||||
# Dart vm does not support spawn from a dom-enabled isolate.
|
||||
async/deferred/deferred_in_isolate_test: RuntimeError # Issue 16209
|
||||
|
||||
[ $compiler == dart2js && $runtime == jsshell ]
|
||||
async/schedule_microtask_test: Fail # Preamble file does not correctly implement scheduleImmediate.
|
||||
|
||||
|
|
Loading…
Reference in a new issue