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

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

Issue 2981283002: rename test methods and format (Closed)
Patch Set: rebase and dartfmt Created 3 years, 5 months 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
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2fbd2d16ce9563adff1751394ef6f80e1c00d82c..8650f64f2f9c1bafc641a5b1a656a095a8723345 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -65,7 +65,12 @@ abstract class AbstractParserTestCase implements ParserTestHelpers {
/**
* Flag indicating whether the fasta parser is being used.
*/
- bool get usingFasta;
+ bool get usingFastaParser;
+
+ /**
+ * Flag indicating whether the fasta scanner is being used.
+ */
+ bool get usingFastaScanner;
/**
* Assert that the number and codes of errors occurred during parsing is the
@@ -8134,7 +8139,7 @@ class ParserTestCase extends EngineTestCase
Parser parser;
@override
- bool get usingFasta => Parser.useFasta;
+ bool get usingFastaParser => Parser.useFasta;
@override
void assertErrorsWithCodes(List<ErrorCode> expectedErrorCodes) {
@@ -8589,6 +8594,8 @@ class ParserTestCase extends EngineTestCase
* Intended to be mixed in to parser test case classes.
*/
class ParserTestHelpers {
+ bool get usingFastaScanner => fe.Scanner.useFasta;
+
void expectCommentText(Comment comment, String expectedText) {
expect(comment.beginToken, same(comment.endToken));
expect(comment.beginToken.lexeme, expectedText);
@@ -13666,7 +13673,7 @@ abstract class TopLevelParserTestMixin implements AbstractParserTestCase {
void test_parseCompilationUnit_abstractAsPrefix_parameterized() {
var errorCodes = <ErrorCode>[];
- if (usingFasta) {
+ if (usingFastaParser) {
// built-in "abstract" cannot be used as a type
errorCodes.add(ParserErrorCode.EXPECTED_TYPE_NAME);
}
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698