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

Unified Diff: tests/lib/convert/chunked_conversion_utf88_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/lib/convert/chunked_conversion_utf88_test.dart
diff --git a/tests/lib/convert/chunked_conversion_utf88_test.dart b/tests/lib/convert/chunked_conversion_utf88_test.dart
index c9a968cbcf52790a4f5cc2956b784e346d5fdc91..a6a4af53ef4454c85a3cecb48f5a173171bcfc87 100644
--- a/tests/lib/convert/chunked_conversion_utf88_test.dart
+++ b/tests/lib/convert/chunked_conversion_utf88_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library utf8_test;
+
import "package:expect/expect.dart";
import 'dart:convert';
@@ -83,7 +84,6 @@ List<int> encode7(String str) {
return bytes;
}
-
int _nextPowerOf2(v) {
assert(v > 0);
v--;
@@ -193,7 +193,7 @@ main() {
codeUnits.length = i + 3;
codeUnits[i] = LEADING_SURROGATE;
codeUnits[i + 1] = TRAILING_SURROGATE;
- codeUnits[i + 2] = CHAR_A; // Add trailing 'a'.
+ codeUnits[i + 2] = CHAR_A; // Add trailing 'a'.
str = new String.fromCharCodes(codeUnits);
bytes = new List.filled(i + 5, CHAR_A);
bytes[i] = UTF8_ENCODING[0];
@@ -206,7 +206,7 @@ main() {
codeUnits[i] = TRAILING_SURROGATE;
codeUnits[i + 1] = TRAILING_SURROGATE;
- codeUnits[i + 2] = CHAR_A; // Add trailing 'a'.
+ codeUnits[i + 2] = CHAR_A; // Add trailing 'a'.
str = new String.fromCharCodes(codeUnits);
bytes = new List.filled(i + 7, CHAR_A);
bytes[i] = UTF8_TRAILING[0];
@@ -219,7 +219,7 @@ main() {
codeUnits[i] = LEADING_SURROGATE;
codeUnits[i + 1] = LEADING_SURROGATE;
- codeUnits[i + 2] = CHAR_A; // Add trailing 'a'.
+ codeUnits[i + 2] = CHAR_A; // Add trailing 'a'.
str = new String.fromCharCodes(codeUnits);
bytes = new List.filled(i + 7, CHAR_A);
bytes[i] = UTF8_LEADING[0];
@@ -232,7 +232,7 @@ main() {
codeUnits[i] = TRAILING_SURROGATE;
codeUnits[i + 1] = LEADING_SURROGATE;
- codeUnits[i + 2] = CHAR_A; // Add trailing 'a'.
+ codeUnits[i + 2] = CHAR_A; // Add trailing 'a'.
str = new String.fromCharCodes(codeUnits);
bytes = new List.filled(i + 7, CHAR_A);
bytes[i] = UTF8_TRAILING[0];

Powered by Google App Engine
This is Rietveld 408576698