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

Unified Diff: tests/compiler/dart2js/scanner_offset_length_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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 | « tests/compiler/dart2js/resolver_test.dart ('k') | tests/compiler/dart2js/scanner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/scanner_offset_length_test.dart
diff --git a/tests/compiler/dart2js/scanner_offset_length_test.dart b/tests/compiler/dart2js/scanner_offset_length_test.dart
index 3eb5bb54baa44bab8a362771ecc75f19a22e8dac..5239f1c738048b0b1f771f916bfedfc3569f5504 100644
--- a/tests/compiler/dart2js/scanner_offset_length_test.dart
+++ b/tests/compiler/dart2js/scanner_offset_length_test.dart
@@ -21,14 +21,16 @@ check(String text) {
Expect.isTrue(start < text.length,
'start=$start < text.length=${text.length}: $text');
- Expect.isTrue(end <= text.length,
- 'end=$end <= text.length=${text.length}: $text');
+ Expect.isTrue(
+ end <= text.length, 'end=$end <= text.length=${text.length}: $text');
Expect.isTrue(start <= end, 'start=$end <= end=$end: $text');
var substring = text.substring(start, end);
- Expect.stringEquals(token.value, substring,
+ Expect.stringEquals(
+ token.value,
+ substring,
'token.value=${token.value} == '
'text.substring(start,end)=${substring}: $text');
@@ -39,12 +41,12 @@ check(String text) {
}
main() {
- check('foo'); // identifier
- check('\'\''); // empty string
- check('\'foo\''); // simple string
- check('\'\$foo\''); // interpolation, identifier
- check('\'\${foo}\''); // interpolation, expression
-
- check('//'); // single line comment
- check('/**/'); // multi line comment
+ check('foo'); // identifier
+ check('\'\''); // empty string
+ check('\'foo\''); // simple string
+ check('\'\$foo\''); // interpolation, identifier
+ check('\'\${foo}\''); // interpolation, expression
+
+ check('//'); // single line comment
+ check('/**/'); // multi line comment
}
« no previous file with comments | « tests/compiler/dart2js/resolver_test.dart ('k') | tests/compiler/dart2js/scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698