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

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

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/incremental_scanner_test.dart
diff --git a/pkg/analyzer/test/generated/incremental_scanner_test.dart b/pkg/analyzer/test/generated/incremental_scanner_test.dart
index 7307dfbc705a10910fbfcad52b55cb221dd16efc..6b72aa61a37fa274ff967a87a3d238771066bc42 100644
--- a/pkg/analyzer/test/generated/incremental_scanner_test.dart
+++ b/pkg/analyzer/test/generated/incremental_scanner_test.dart
@@ -11,10 +11,11 @@ import 'package:analyzer/src/generated/source.dart';
import 'package:unittest/unittest.dart';
import '../reflective_tests.dart';
+import '../utils.dart';
import 'test_support.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
runReflectiveTests(IncrementalScannerTest);
}
@@ -317,10 +318,14 @@ class IncrementalScannerTest extends EngineTestCase {
void test_insert_whitespace_withMultipleComments() {
// "//comment1", "//comment2", "a + b;"
// "//comment1", "//comment2", "a + b;"
- _scan(r'''
+ _scan(
+ r'''
//comment1
//comment2
-a''', "", " ", " + b;");
+a''',
+ "",
+ " ",
+ " + b;");
_assertTokens(1, 2, ["a", "+", "b", ";"]);
expect(_incrementalScanner.hasNonWhitespaceChange, isFalse);
}
@@ -413,9 +418,11 @@ a''', "", " ", " + b;");
expect(actual.type, same(expected.type), reason: "Wrong type for token");
expect(actual.lexeme, expected.lexeme, reason: "Wrong lexeme for token");
expect(actual.offset, expected.offset,
- reason: "Wrong offset for token ('${actual.lexeme}' != '${expected.lexeme}')");
+ reason:
+ "Wrong offset for token ('${actual.lexeme}' != '${expected.lexeme}')");
expect(actual.length, expected.length,
- reason: "Wrong length for token ('${actual.lexeme}' != '${expected.lexeme}')");
+ reason:
+ "Wrong length for token ('${actual.lexeme}' != '${expected.lexeme}')");
}
/**
@@ -521,9 +528,11 @@ a''', "", " ", " + b;");
modifiedComment = modifiedComment.next;
}
expect(incrementalComment, isNull,
- reason: "Too many comment tokens preceeding '${incrementalToken.lexeme}'");
+ reason:
+ "Too many comment tokens preceeding '${incrementalToken.lexeme}'");
expect(modifiedComment, isNull,
- reason: "Not enough comment tokens preceeding '${incrementalToken.lexeme}'");
+ reason:
+ "Not enough comment tokens preceeding '${incrementalToken.lexeme}'");
incrementalToken = incrementalToken.next;
modifiedTokens = modifiedTokens.next;
}
« no previous file with comments | « pkg/analyzer/test/generated/incremental_resolver_test.dart ('k') | pkg/analyzer/test/generated/java_core_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698