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

Unified Diff: tests/lib_strong/html/element_animate_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/element_animate_test.dart
diff --git a/tests/lib_strong/html/element_animate_test.dart b/tests/lib_strong/html/element_animate_test.dart
index 10477c9bc2ee4f8097558630850affe846bc7e42..99d41496bec3893cf84d6c9cd0bc807032788a39 100644
--- a/tests/lib_strong/html/element_animate_test.dart
+++ b/tests/lib_strong/html/element_animate_test.dart
@@ -22,7 +22,10 @@ main() {
test('simple timing', () {
var body = document.body;
var opacity = num.parse(body.getComputedStyle().opacity);
- body.animate([{"opacity": 100}, {"opacity": 0}], 100);
+ body.animate([
+ {"opacity": 100},
+ {"opacity": 0}
+ ], 100);
var newOpacity = num.parse(body.getComputedStyle().opacity);
expect(newOpacity == opacity, isTrue);
});
@@ -33,8 +36,12 @@ main() {
var body = document.body;
// Animate different characteristics so the tests can run concurrently.
var fontSize = body.getComputedStyle().fontSize;
- var player = body.animate(
- [{"font-size": "500px"}, {"font-size": fontSize}], {"duration": 100});
+ var player = body.animate([
+ {"font-size": "500px"},
+ {"font-size": fontSize}
+ ], {
+ "duration": 100
+ });
var newFontSize = body.getComputedStyle().fontSize;
// Don't bother to parse to numbers, as long as it's changed that
// indicates something is happening.

Powered by Google App Engine
This is Rietveld 408576698