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

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

Issue 682553002: Convert most of the EngineTestCase.createSource invocations into multi-line String literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
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 11352922c8e46e4f7af4364040b083b4b95a61b7..4ec3ef67f45102b501eb25021a2b08a0b81c0848 100644
--- a/pkg/analyzer/test/generated/scanner_test.dart
+++ b/pkg/analyzer/test/generated/scanner_test.dart
@@ -270,7 +270,10 @@ class IncrementalScannerTest extends EngineTestCase {
void test_insert_whitespace_withMultipleComments() {
// "//comment", "//comment2", "a + b;"
// "//comment", "//comment2", "a + b;"
- _scan(EngineTestCase.createSource(["//comment", "//comment2", "a"]), "", " ", " + b;");
+ _scan(r'''
+//comment
+//comment2
+a''', "", " ", " + b;");
_assertTokens(1, 2, ["a", "+", "b", ";"]);
JUnitTestCase.assertFalse(_incrementalScanner.hasNonWhitespaceChange);
}
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | pkg/analyzer/test/generated/static_type_warning_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698