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

Unified Diff: pkg/analyzer/test/generated/parser_test.dart

Issue 780763004: Annotate analyzer tests with @ReflectiveTestCase(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/generated/parser_test.dart
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
index ccbed64451d0fdc4f0b0b0b8b58af7e1368e9cdd..361bbb020ac2e895bd03449725efc7fcb38d9afd 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -123,6 +123,7 @@ class AstValidator extends UnifyingAstVisitor<Object> {
*
* Simpler tests should be defined in the class [SimpleParserTest].
*/
+@ReflectiveTestCase()
class ComplexParserTest extends ParserTestCase {
void test_additiveExpression_normal() {
BinaryExpression expression = ParserTestCase.parseExpression("x + y - z");
@@ -583,6 +584,7 @@ class C {
* The class `ErrorParserTest` defines parser tests that test the parsing of code to ensure
* that errors are correctly reported, and in some cases, not reported.
*/
+@ReflectiveTestCase()
class ErrorParserTest extends ParserTestCase {
void fail_expectedListOrMapLiteral() {
// It isn't clear that this test can ever pass. The parser is currently
@@ -2576,6 +2578,7 @@ class ErrorParserTest extends ParserTestCase {
}
}
+@ReflectiveTestCase()
class IncrementalParserTest extends EngineTestCase {
void fail_replace_identifier_with_functionLiteral_in_initializer_interp() {
// TODO(paulberry, brianwilkerson): broken due to incremental scanning bugs
@@ -2966,6 +2969,7 @@ class C {
}
}
+@ReflectiveTestCase()
class NonErrorParserTest extends ParserTestCase {
void test_constFactory_external() {
ParserTestCase.parse(
@@ -3269,6 +3273,7 @@ class ParserTestCase extends EngineTestCase {
* The class `RecoveryParserTest` defines parser tests that test the parsing of invalid code
* sequences to ensure that the correct recovery steps are taken in the parser.
*/
+@ReflectiveTestCase()
class RecoveryParserTest extends ParserTestCase {
void fail_incomplete_returnType() {
ParserTestCase.parseCompilationUnit(r'''
@@ -4514,6 +4519,7 @@ class C {
}
}
+@ReflectiveTestCase()
class ResolutionCopierTest extends EngineTestCase {
void test_visitAnnotation() {
String annotationName = "proxy";
@@ -5163,6 +5169,7 @@ class ResolutionCopierTest extends EngineTestCase {
*
* More complex tests should be defined in the class [ComplexParserTest].
*/
+@ReflectiveTestCase()
class SimpleParserTest extends ParserTestCase {
void fail_parseCommentReference_this() {
// This fails because we are returning null from the method and asserting
« no previous file with comments | « pkg/analyzer/test/generated/incremental_scanner_test.dart ('k') | pkg/analyzer/test/generated/scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698