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

Unified Diff: tests/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/html/instance_of_test.dart
diff --git a/tests/html/instance_of_test.dart b/tests/html/instance_of_test.dart
index da664db79bef29053fa8ed0c0c4cb3cc75604706..e92d8806b0a444e38a64f8118489663b66a564fe 100644
--- a/tests/html/instance_of_test.dart
+++ b/tests/html/instance_of_test.dart
@@ -1,4 +1,5 @@
library InstanceOfTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -11,19 +12,17 @@ main() {
canvas.attributes['height'] = '100';
document.body.append(canvas);
- var isCanvasRenderingContext = predicate((x) => x is CanvasRenderingContext,
- 'is a CanvasRenderingContext');
- var isCanvasRenderingContext2D =
- predicate((x) => x is CanvasRenderingContext2D,
- 'is a CanvasRenderingContext2D');
+ var isCanvasRenderingContext = predicate(
+ (x) => x is CanvasRenderingContext, 'is a CanvasRenderingContext');
+ var isCanvasRenderingContext2D = predicate(
+ (x) => x is CanvasRenderingContext2D, 'is a CanvasRenderingContext2D');
var isElement = predicate((x) => x is Element, 'is an Element');
var isCanvasElement =
predicate((x) => x is CanvasElement, 'is a CanvasElement');
var isImageData = predicate((x) => x is ImageData, 'is 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>');
useHtmlConfiguration();
test('Instanceof', () {
@@ -43,8 +42,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, isNot(isCanvasRenderingContext));
expect(image, isNot(isCanvasRenderingContext2D));
expect(image, isNot(isElement));

Powered by Google App Engine
This is Rietveld 408576698