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

Unified Diff: tests/lib_strong/html/canvas_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/canvas_test.dart
diff --git a/tests/lib_strong/html/canvas_test.dart b/tests/lib_strong/html/canvas_test.dart
index d83c1d963065533393f45a8ef4bf5efabb79a11d..bcefc6028d7ab8452ba78e8b9833a41c4859fdd3 100644
--- a/tests/lib_strong/html/canvas_test.dart
+++ b/tests/lib_strong/html/canvas_test.dart
@@ -1,4 +1,5 @@
library CanvasTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -9,15 +10,14 @@ main() {
int width = 100;
int height = 100;
- canvas = new CanvasElement(width:width, height:height);
+ canvas = new CanvasElement(width: width, height: height);
document.body.append(canvas);
context = canvas.context2D;
useHtmlConfiguration();
test('CreateImageData', () {
- ImageData image = context.createImageData(canvas.width,
- canvas.height);
+ ImageData image = context.createImageData(canvas.width, canvas.height);
List<int> data = image.data;
expect(data, hasLength(40000));
@@ -47,8 +47,7 @@ main() {
});
}
-void checkPixel(List<int> data, int offset, List<int> rgba)
-{
+void checkPixel(List<int> data, int offset, List<int> rgba) {
offset *= 4;
for (var i = 0; i < 4; ++i) {
expect(data[offset + i], equals(rgba[i]));

Powered by Google App Engine
This is Rietveld 408576698