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

Unified Diff: tests/html/webgl_1_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/webgl_1_test.dart
diff --git a/tests/html/webgl_1_test.dart b/tests/html/webgl_1_test.dart
index d6e6f1f4cadd2cbd04ed87ec21ac3b923609cd3e..822683f0f319ad42dee39090e2a0843e6153759c 100644
--- a/tests/html/webgl_1_test.dart
+++ b/tests/html/webgl_1_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library web_gl_test;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_individual_config.dart';
import 'dart:html';
@@ -58,14 +59,14 @@ main() {
test('texImage2D', () {
var canvas = new CanvasElement();
var context = canvas.getContext3d();
- var pixels = new Uint8List.fromList([0,0,3,255,0,0,0,0,0,0]);
+ var pixels = new Uint8List.fromList([0, 0, 3, 255, 0, 0, 0, 0, 0, 0]);
context.texImage2DUntyped(1, 1, 1, 1, 10, 10, 1, 1, pixels);
canvas = new CanvasElement();
document.body.children.add(canvas);
var context2 = canvas.getContext('2d');
- context.texImage2DData(1, 1, 1, 1, 10,
- context2.getImageData(10, 10, 10, 10));
+ context.texImage2DData(
+ 1, 1, 1, 1, 10, context2.getImageData(10, 10, 10, 10));
context.texImage2DImage(1, 1, 1, 1, 10, new ImageElement());
context.texImage2DCanvas(1, 1, 1, 1, 10, new CanvasElement());
@@ -75,14 +76,14 @@ main() {
test('texSubImage2D', () {
var canvas = new CanvasElement();
var context = canvas.getContext3d();
- var pixels = new Uint8List.fromList([0,0,3,255,0,0,0,0,0,0]);
+ var pixels = new Uint8List.fromList([0, 0, 3, 255, 0, 0, 0, 0, 0, 0]);
context.texSubImage2DUntyped(1, 1, 1, 1, 10, 10, 1, 1, pixels);
canvas = new CanvasElement();
document.body.children.add(canvas);
var context2 = canvas.getContext('2d');
- context.texSubImage2DData(1, 1, 1, 1, 1, 10,
- context2.getImageData(10, 10, 10, 10));
+ context.texSubImage2DData(
+ 1, 1, 1, 1, 1, 10, context2.getImageData(10, 10, 10, 10));
context.texSubImage2DImage(1, 1, 1, 1, 1, 10, new ImageElement());
context.texSubImage2DCanvas(1, 1, 1, 1, 1, 10, new CanvasElement());

Powered by Google App Engine
This is Rietveld 408576698