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

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

Issue 107833002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/scanner_test.dart
diff --git a/pkg/analyzer/test/generated/scanner_test.dart b/pkg/analyzer/test/generated/scanner_test.dart
index 04350a54e4882ec3c369fa659594043f7c2e5e91..50ad8cba8dbef07cc7e22fb282c44e7ea2bcbc15 100644
--- a/pkg/analyzer/test/generated/scanner_test.dart
+++ b/pkg/analyzer/test/generated/scanner_test.dart
@@ -361,6 +361,14 @@ class ScannerTest extends JUnitTestCase {
assertToken(TokenType.COMMA, ",");
}
+ void test_comment_disabled_multi() {
+ Scanner scanner = new Scanner(null, new CharSequenceReader(new CharSequence("/* comment */ ")), AnalysisErrorListener.NULL_LISTENER);
+ scanner.preserveComments = false;
+ Token token = scanner.tokenize();
+ JUnitTestCase.assertNotNull(token);
+ JUnitTestCase.assertNull(token.precedingComments);
+ }
+
void test_comment_multi() {
assertComment(TokenType.MULTI_LINE_COMMENT, "/* comment */");
}
@@ -1262,6 +1270,10 @@ class ScannerTest extends JUnitTestCase {
final __test = new ScannerTest();
runJUnitTest(__test, __test.test_comma);
});
+ _ut.test('test_comment_disabled_multi', () {
+ final __test = new ScannerTest();
+ runJUnitTest(__test, __test.test_comment_disabled_multi);
+ });
_ut.test('test_comment_multi', () {
final __test = new ScannerTest();
runJUnitTest(__test, __test.test_comment_multi);
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698