mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 17:24:54 +00:00
Change test language/const_factory_negative_test.dart into a multi-test
R=kustermann@google.com BUG= Review URL: https://codereview.chromium.org//23519005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27174 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
8007683eb5
commit
a2e4c994d5
|
@ -1,14 +0,0 @@
|
|||
// Copyright (c) 2011, 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.
|
||||
// For Dart VM: tests that a "const factory" with body produces an error.
|
||||
// For DartC: tests that a "const factory" is illegal.
|
||||
|
||||
class ConstFactoryNegativeTest {
|
||||
const factory ConstFactoryNegativeTest.one() {
|
||||
}
|
||||
}
|
||||
|
||||
main() {
|
||||
const ConstFactoryNegativeTest.one();
|
||||
}
|
13
tests/language/const_factory_with_body_test.dart
Normal file
13
tests/language/const_factory_with_body_test.dart
Normal file
|
@ -0,0 +1,13 @@
|
|||
// Copyright (c) 2011, 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.
|
||||
//
|
||||
// Tests that a "const factory" with body produces a compile-time error.
|
||||
|
||||
class ConstFactoryWithBody {
|
||||
const factory ConstFactoryWithBody.one() { } /// 01: compile-time error
|
||||
}
|
||||
|
||||
main() {
|
||||
const ConstFactoryWithBody.one(); /// 01: continued
|
||||
}
|
|
@ -184,16 +184,10 @@ final_syntax_test/04: Fail # Issue 13020
|
|||
canonical_const2_test: Fail, OK # Dart2js only has doubles.
|
||||
|
||||
bit_operations_test: Fail, OK # Tests bit operations outside the 32 bit range.
|
||||
# The following test will start to fail again once dart2js implements the
|
||||
# runtime semantics for numbers.
|
||||
# Should be: Fail, OK # Expects negative results of bit-operations.
|
||||
optimization_test: Fail, OK # Expects negative results of bit-operations.
|
||||
|
||||
expect_test: Fail, OK # JavaScript canonicalizes all strings. This test assumes that string-concatenation returns a new string.
|
||||
|
||||
# Partially implemented redirecting constructors makes this throw instead
|
||||
# of failing.
|
||||
const_factory_negative_test: Crash, Fail
|
||||
const_factory_with_body_test/01: Fail # Issue 13028
|
||||
|
||||
assign_top_method_test: Fail
|
||||
null_test/none: Fail # Issue 12482
|
||||
|
@ -343,6 +337,7 @@ throw7_test/01: Fail # Issue 13019
|
|||
number_identifier_test/01: Fail # Issue 13014
|
||||
number_identifier_test/02: Fail # Issue 13014
|
||||
scope_variable_test/01: Fail # Issue 13016
|
||||
const_factory_with_body_test/01: Fail # Issue 13028
|
||||
# Common with language_dart2js.
|
||||
factory_redirection_test/01: Fail # Issue 12753
|
||||
factory_redirection_test/02: Crash # Issue 12753
|
||||
|
|
Loading…
Reference in a new issue