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

Unified Diff: tests/lib_strong/html/cssstyledeclaration_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/cssstyledeclaration_test.dart
diff --git a/tests/lib_strong/html/cssstyledeclaration_test.dart b/tests/lib_strong/html/cssstyledeclaration_test.dart
index b146085a835939d848b3f2017af25b50bce50a1b..85257e0e38d36a3017edba3a0e268650e744f59e 100644
--- a/tests/lib_strong/html/cssstyledeclaration_test.dart
+++ b/tests/lib_strong/html/cssstyledeclaration_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library CssStyleDeclarationTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -17,7 +18,9 @@ main() {
color: blue;
width: 2px !important;
""");
- };
+ }
+
+ ;
test('default constructor is empty', () {
var style = new CssStyleDeclaration();
@@ -44,8 +47,7 @@ main() {
test('removeProperty is wrapped', () {
var style = createTestStyle();
style.removeProperty("width");
- expect(style.cssText.trim(),
- equals("color: blue;"));
+ expect(style.cssText.trim(), equals("color: blue;"));
});
test('CSS property empty getters and setters', () {
@@ -104,11 +106,13 @@ main() {
});
test('css multi get', () {
- var listElement = new Element.html('<ul class="foo">'
+ var listElement = new Element.html(
+ '<ul class="foo">'
'<li class="bar" style="background-color: red; border-left: 10px;">'
'<li class="baz" style="background-color: black;>'
'<li class="baz classy" style="background-color: blue; ">'
- '</ul>', treeSanitizer: new NullTreeSanitizer());
+ '</ul>',
+ treeSanitizer: new NullTreeSanitizer());
document.documentElement.children.add(listElement);
var elements = document.queryAll('li');
@@ -122,11 +126,13 @@ main() {
});
test('css multi set', () {
- var listElement = new Element.html('<ul class="foo">'
+ var listElement = new Element.html(
+ '<ul class="foo">'
'<li class="bar" style="background-color: red; border-left: 10px;">'
'<li class="baz" style="background-color: black;>'
'<li class="baz" id="wat" style="background-color: blue; ">'
- '</ul>', treeSanitizer: new NullTreeSanitizer());
+ '</ul>',
+ treeSanitizer: new NullTreeSanitizer());
document.documentElement.children.add(listElement);
var elements = document.queryAll('li');

Powered by Google App Engine
This is Rietveld 408576698