Index: tests/html/element_dimensions_test.dart |
diff --git a/tests/html/element_dimensions_test.dart b/tests/html/element_dimensions_test.dart |
index 413d302a68388288506398d541872ca7e616c3dd..d68af215aa82f905bdfbfbcba5f6f35d9c85f031 100644 |
--- a/tests/html/element_dimensions_test.dart |
+++ b/tests/html/element_dimensions_test.dart |
@@ -3,6 +3,7 @@ |
// BSD-style license that can be found in the LICENSE file |
library element_dimensions_test; |
+ |
import 'package:unittest/unittest.dart'; |
import 'package:unittest/html_config.dart'; |
import 'dart:html'; |
@@ -21,23 +22,25 @@ main() { |
void initDiv() { |
var style = div.style; |
- style..padding = '4px' |
- ..border = '0px solid #fff' |
- ..margin = '6px' |
- ..height = '10px' |
- ..width = '11px' |
- ..boxSizing = 'content-box' |
- ..overflow = 'visible'; |
+ style |
+ ..padding = '4px' |
+ ..border = '0px solid #fff' |
+ ..margin = '6px' |
+ ..height = '10px' |
+ ..width = '11px' |
+ ..boxSizing = 'content-box' |
+ ..overflow = 'visible'; |
} |
div.nodes.addAll([ |
- new DivElement(), |
- new CanvasElement(), |
- new DivElement(), |
- new Text('Hello'), |
- new DivElement(), |
- new Text('World'), |
- new CanvasElement()]); |
+ new DivElement(), |
+ new CanvasElement(), |
+ new DivElement(), |
+ new Text('Hello'), |
+ new DivElement(), |
+ new Text('World'), |
+ new CanvasElement() |
+ ]); |
group('dimensions', () { |
setUp(initDiv); |
@@ -109,7 +112,6 @@ main() { |
expect(all1.contentEdge.width, 0); |
div.style.border = '2px solid #fff'; |
expect(all1.contentEdge.width, 0); |
- |
}); |
test('paddingEdge.height', () { |
@@ -182,7 +184,6 @@ main() { |
expect(all1.marginEdge.height, 666); |
}); |
- |
test('borderEdge.height and marginEdge.height with border-box', () { |
var all1 = queryAll('#test'); |
div.style.boxSizing = 'border-box'; |
@@ -233,8 +234,8 @@ main() { |
expect(all1.borderEdge.left, all1[0].getBoundingClientRect().left); |
expect(all1.borderEdge.top, all1[0].getBoundingClientRect().top); |
- expect(all1.contentEdge.left, |
- all1[0].getBoundingClientRect().left + 1 + 5); |
+ expect( |
+ all1.contentEdge.left, all1[0].getBoundingClientRect().left + 1 + 5); |
expect(all1.contentEdge.top, all1[0].getBoundingClientRect().top + 1 + 4); |
expect(all1.marginEdge.left, all1[0].getBoundingClientRect().left - 7); |