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

Unified Diff: tests/compiler/dart2js_extra/bound_closure_interceptor_type_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
Index: tests/compiler/dart2js_extra/bound_closure_interceptor_type_test.dart
diff --git a/tests/compiler/dart2js_extra/bound_closure_interceptor_type_test.dart b/tests/compiler/dart2js_extra/bound_closure_interceptor_type_test.dart
index fa1b7a15b64528cdce02b7d548e9eec54dc483bb..7d4ea1039d5860d142f55b3ffedab1ce4d8a4ba3 100644
--- a/tests/compiler/dart2js_extra/bound_closure_interceptor_type_test.dart
+++ b/tests/compiler/dart2js_extra/bound_closure_interceptor_type_test.dart
@@ -14,7 +14,7 @@ import "package:expect/expect.dart";
class A<T> {
const A();
- void add(T x) { }
+ void add(T x) {}
T elementAt(int index) => index == 0 ? 42 : 'string';
// This call get:elementAt has a known receiver type, so is is potentially
@@ -29,7 +29,7 @@ class A<T> {
var getAddOfA = (a) => a.getAdd();
var getElementAtOfA = (a) => a.getElementAt();
-var getAdd1 = (a) => a.add; // receiver has unknown type here.
+var getAdd1 = (a) => a.add; // receiver has unknown type here.
var getAdd2 = (a) {
// Call needs to be indirect to avoid inlining.
@@ -37,7 +37,7 @@ var getAdd2 = (a) {
return a.add;
};
-var getElementAt1 = (a) => a.elementAt; // receiver has unknown type here.
+var getElementAt1 = (a) => a.elementAt; // receiver has unknown type here.
var getElementAt2 = (a) {
// Call needs to be indirect to avoid inlining.
@@ -45,7 +45,6 @@ var getElementAt2 = (a) {
return a.elementAt;
};
-
typedef void IntToVoid(int x);
typedef void StringToVoid(String x);
@@ -71,7 +70,6 @@ var methods = {
'getElementAt2': (x) => getElementAt2(x),
};
-
main() {
inscrutable = (x) => x;
@@ -95,9 +93,7 @@ main() {
var description = '$object';
checkers.forEach((checkName, checkFn) {
bool answer = trueCheckNames.contains(checkName);
- Expect.equals(
- answer,
- checkFn(methodFn(object)),
+ Expect.equals(answer, checkFn(methodFn(object)),
'$methodName($description) is $checkName');
});
}
@@ -116,8 +112,13 @@ main() {
check(m, objectsLst, []);
m = ['getElementAt1', 'getElementAt2'];
- check(m, objectsDyn, ['IntToInt', 'IntToString', 'IntToVoid', 'IntToT<int>',
- 'IntToT<String>']);
+ check(m, objectsDyn, [
+ 'IntToInt',
+ 'IntToString',
+ 'IntToVoid',
+ 'IntToT<int>',
+ 'IntToT<String>'
+ ]);
check(m, objectsInt, ['IntToInt', 'IntToVoid', 'IntToT<int>']);
check(m, objectsStr, ['IntToString', 'IntToVoid', 'IntToT<String>']);
check(m, objectsLst, ['IntToVoid']);
« no previous file with comments | « tests/compiler/dart2js_extra/bound_closure_interceptor_methods_test.dart ('k') | tests/compiler/dart2js_extra/break_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698