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

Unified Diff: tests/lib_strong/html/instance_of_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/instance_of_test.dart
diff --git a/tests/lib_strong/html/instance_of_test.dart b/tests/lib_strong/html/instance_of_test.dart
index 4322afb5f21d99d2c0e852d2b94f3a4d9f81ae44..72db7b67d4cd5fd9a7b9f15b2e39d8a85def368e 100644
--- a/tests/lib_strong/html/instance_of_test.dart
+++ b/tests/lib_strong/html/instance_of_test.dart
@@ -10,15 +10,14 @@ main() {
canvas.attributes['height'] = '100';
document.body.append(canvas);
- var isCanvasRenderingContext = predicate((x) => x is CanvasRenderingContext,
- 'is a CanvasRenderingContext');
- var isNotCanvasRenderingContext = predicate((x) => x is! CanvasRenderingContext,
- 'is not a CanvasRenderingContext');
- var isCanvasRenderingContext2D =
- predicate((x) => x is CanvasRenderingContext2D,
- 'is a CanvasRenderingContext2D');
- var isNotCanvasRenderingContext2D =
- predicate((x) => x is! CanvasRenderingContext2D,
+ var isCanvasRenderingContext = predicate(
+ (x) => x is CanvasRenderingContext, 'is a CanvasRenderingContext');
+ var isNotCanvasRenderingContext = predicate(
+ (x) => x is! CanvasRenderingContext, 'is not a CanvasRenderingContext');
+ var isCanvasRenderingContext2D = predicate(
+ (x) => x is CanvasRenderingContext2D, 'is a CanvasRenderingContext2D');
+ var isNotCanvasRenderingContext2D = predicate(
+ (x) => x is! CanvasRenderingContext2D,
'is not a CanvasRenderingContext2D');
var isElement = predicate((x) => x is Element, 'is an Element');
var isNotElement = predicate((x) => x is! Element, 'is not an Element');
@@ -30,8 +29,7 @@ main() {
var isNotImageData = predicate((x) => x is! ImageData, 'is not an ImageData');
//var isUint8ClampedArray =
// predicate((x) => x is Uint8ClampedArray, 'is a Uint8ClampedArray');
- var isIntList =
- predicate((x) => x is List<int>, 'is a List<int>');
+ var isIntList = predicate((x) => x is List<int>, 'is a List<int>');
test('Instanceof', () {
expect(canvas, isNotCanvasRenderingContext);
@@ -50,8 +48,8 @@ main() {
// expect(context, isNot(isCanvasPixelArray));
// FIXME(b/5286633): Interface injection type check workaround.
- var image = context.createImageData(canvas.width as dynamic,
- canvas.height as dynamic);
+ var image = context.createImageData(
+ canvas.width as dynamic, canvas.height as dynamic);
expect(image, isNotCanvasRenderingContext);
expect(image, isNotCanvasRenderingContext2D);
expect(image, isNotElement);

Powered by Google App Engine
This is Rietveld 408576698