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

Unified Diff: tests/lib_strong/html/js_typed_interop_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_strong/html/js_typed_interop_test.dart
diff --git a/tests/lib_strong/html/js_typed_interop_test.dart b/tests/lib_strong/html/js_typed_interop_test.dart
index 1f8bd06f25e02f246ea9ec39d8ef58cc57e8fef4..2f6194667578c38845141b6ae6ea35781abfd522 100644
--- a/tests/lib_strong/html/js_typed_interop_test.dart
+++ b/tests/lib_strong/html/js_typed_interop_test.dart
@@ -279,13 +279,14 @@ main() {
// Calling with extra bogus arguments has no impact for JavaScript
// methods.
expect(untypedFunction(6, 6, "ignored", "ignored"), equals(36));
- expect(untypedFunction(6, 6, "ignored", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), equals(36));
+ expect(
+ untypedFunction(6, 6, "ignored", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
+ equals(36));
// Calling a JavaScript method with too few arguments is also fine and
// defaults to JavaScript behavior of setting all unspecified arguments
// to undefined resulting in multiplying undefined by 2 == NAN.
expect(untypedFunction(), double.NAN);
-
});
});
@@ -317,8 +318,7 @@ main() {
localClosure(x) => x * 10;
var wrappedLocalClosure = allowInterop(localClosure);
var wrappedLocalClosure2 = allowInterop(localClosure);
- expect(
- identical(wrappedLocalClosure2, wrappedLocalClosure), isTrue);
+ expect(identical(wrappedLocalClosure2, wrappedLocalClosure), isTrue);
expect(foo.callClosureWithArg1(wrappedLocalClosure, 10), equals(100));
expect(foo.callClosureWithArg1(wrappedLocalClosure, "a"),
equals("aaaaaaaaaa"));

Powered by Google App Engine
This is Rietveld 408576698