mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:31:58 +00:00
Fix cascade tests with Fasta.
There are still failing cascade tests, but these are because of parsing differences, not because of problems with the test implementation. R=paulberry@google.com BUG= Review-Url: https://codereview.chromium.org/2726753003 .
This commit is contained in:
parent
d1bfe8bccb
commit
270a6900f6
|
@ -426,18 +426,6 @@ class ExpressionParserTest_Fasta extends FastaParserTestCase
|
|||
super.test_parseAwaitExpression();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_i() {
|
||||
super.test_parseCascadeSection_i();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_ia() {
|
||||
super.test_parseCascadeSection_ia();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_ia_typeArgumentComments() {
|
||||
|
@ -450,36 +438,12 @@ class ExpressionParserTest_Fasta extends FastaParserTestCase
|
|||
super.test_parseCascadeSection_ia_typeArguments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_ii() {
|
||||
super.test_parseCascadeSection_ii();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_ii_typeArgumentComments() {
|
||||
super.test_parseCascadeSection_ii_typeArgumentComments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_ii_typeArguments() {
|
||||
super.test_parseCascadeSection_ii_typeArguments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_p() {
|
||||
super.test_parseCascadeSection_p();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_p_assign() {
|
||||
super.test_parseCascadeSection_p_assign();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_p_assign_withCascade() {
|
||||
|
@ -498,36 +462,12 @@ class ExpressionParserTest_Fasta extends FastaParserTestCase
|
|||
super.test_parseCascadeSection_p_assign_withCascade_typeArguments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_p_builtIn() {
|
||||
super.test_parseCascadeSection_p_builtIn();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_pa() {
|
||||
super.test_parseCascadeSection_pa();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_pa_typeArgumentComments() {
|
||||
super.test_parseCascadeSection_pa_typeArgumentComments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_pa_typeArguments() {
|
||||
super.test_parseCascadeSection_pa_typeArguments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_paa() {
|
||||
super.test_parseCascadeSection_paa();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_paa_typeArgumentComments() {
|
||||
|
@ -540,12 +480,6 @@ class ExpressionParserTest_Fasta extends FastaParserTestCase
|
|||
super.test_parseCascadeSection_paa_typeArguments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_paapaa() {
|
||||
super.test_parseCascadeSection_paapaa();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_paapaa_typeArgumentComments() {
|
||||
|
@ -558,24 +492,12 @@ class ExpressionParserTest_Fasta extends FastaParserTestCase
|
|||
super.test_parseCascadeSection_paapaa_typeArguments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_pap() {
|
||||
super.test_parseCascadeSection_pap();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_pap_typeArgumentComments() {
|
||||
super.test_parseCascadeSection_pap_typeArgumentComments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseCascadeSection_pap_typeArguments() {
|
||||
super.test_parseCascadeSection_pap_typeArguments();
|
||||
}
|
||||
|
||||
@override
|
||||
@failingTest
|
||||
void test_parseConstExpression_instanceCreation() {
|
||||
|
@ -1043,7 +965,8 @@ class FastaParserTestCase extends Object
|
|||
|
||||
@override
|
||||
Expression parseCascadeSection(String code) {
|
||||
return _parseExpression('null$code');
|
||||
var cascadeExpression = _parseExpression('null$code') as CascadeExpression;
|
||||
return cascadeExpression.cascadeSections.single;
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue