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

Unified Diff: tests/language/function_type/test_generator.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/language/function_type/test_generator.dart
diff --git a/tests/language/function_type/test_generator.dart b/tests/language/function_type/test_generator.dart
index 68f8a7cb7612e3c2461484890a10cee872008ddf..c9f14ec05eb50e345eb9ab7f0c85d8513478ca28 100644
--- a/tests/language/function_type/test_generator.dart
+++ b/tests/language/function_type/test_generator.dart
@@ -448,8 +448,8 @@ List<FunctionType> buildFunctionTypes() {
[new Parameter(new NominalType("int"), "x")],
[new Parameter(parameterType, null)]));
// int Function({int x}).
- result.add(new FunctionType(returnType, generics, null, null,
- [new Parameter(parameterType, "x")]));
+ result.add(new FunctionType(
+ returnType, generics, null, null, [new Parameter(parameterType, "x")]));
// int Function(int, {int x})
result.add(new FunctionType(
returnType,
@@ -546,7 +546,6 @@ final bool inCheckedMode =
(() { bool result = false; assert(result = true); return result; })();
""";
-
class Unit {
final String name;
final StringBuffer typedefs = new StringBuffer();
@@ -593,7 +592,6 @@ void main() {
}
}
-
final TEST_METHOD_HEADER = """
void #testName() {
// #typeCode""";
@@ -670,6 +668,7 @@ String createTypeCode(FunctionType type) {
type.writeType(typeBuffer);
return typeBuffer.toString();
}
+
String createStaticFunCode(FunctionType type, int id) {
StringBuffer staticFunBuffer = new StringBuffer();
type.writeFunction(staticFunBuffer, createStaticFunName(id));
@@ -733,7 +732,6 @@ void generateTests() {
String testMethodCode =
createTestMethodFunCode(type, typeCode, typeCounter);
-
unit.typedefs.writeln("typedef $typeName<T> = $typeCode;");
unit.globals.writeln(staticFunCode);
unit.fields.writeln(" $typeCode $fieldName;");
@@ -767,4 +765,4 @@ void main(List<String> arguments) {
return;
}
generateTests();
-}
+}

Powered by Google App Engine
This is Rietveld 408576698