mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:01:20 +00:00
[flip-modifiers] fix some vm tests to make mixed in classes mixins
These tests don't have a language version and so will get opted in when the flag is flipped, and need to be compatible. TEST=only test changes Change-Id: Idf49123e25c876102e6719ed3de8b475e80c8975 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286542 Reviewed-by: Alexander Aprelev <aam@google.com> Auto-Submit: Jake Macdonald <jakemac@google.com> Commit-Queue: Jake Macdonald <jakemac@google.com>
This commit is contained in:
parent
3643e771c4
commit
a22e003ee1
|
@ -6,7 +6,7 @@ part of regress_39168;
|
|||
|
||||
class B {}
|
||||
|
||||
abstract class C {}
|
||||
mixin C {}
|
||||
|
||||
// Mixin application B with C is de-duplicated with mixin application
|
||||
// in regress_39168_part1.dart.
|
||||
|
|
|
@ -930,7 +930,7 @@ TEST_CASE(IsolateReload_TypeIdentityParameter) {
|
|||
|
||||
TEST_CASE(IsolateReload_MixinChanged) {
|
||||
const char* kScript =
|
||||
"class Mixin1 {\n"
|
||||
"mixin Mixin1 {\n"
|
||||
" var field = 'mixin1';\n"
|
||||
" func() => 'mixin1';\n"
|
||||
"}\n"
|
||||
|
@ -946,7 +946,7 @@ TEST_CASE(IsolateReload_MixinChanged) {
|
|||
EXPECT_STREQ("saved:field=mixin1,func=mixin1", SimpleInvokeStr(lib, "main"));
|
||||
|
||||
const char* kReloadScript =
|
||||
"class Mixin2 {\n"
|
||||
"mixin Mixin2 {\n"
|
||||
" var field = 'mixin2';\n"
|
||||
" func() => 'mixin2';\n"
|
||||
"}\n"
|
||||
|
@ -1232,7 +1232,7 @@ TEST_CASE(IsolateReload_SmiFastPathStubs) {
|
|||
// mixins when we reload.
|
||||
TEST_CASE(IsolateReload_ImportedMixinFunction) {
|
||||
const char* kImportScript =
|
||||
"class ImportedMixin {\n"
|
||||
"mixin ImportedMixin {\n"
|
||||
" mixinFunc() => 'mixin';\n"
|
||||
"}\n";
|
||||
TestCase::AddTestLib("test:lib1", kImportScript);
|
||||
|
|
Loading…
Reference in a new issue