OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:html'; | 6 import 'dart:html'; |
7 | 7 |
8 import 'package:minitest/minitest.dart'; | 8 import 'package:expect/minitest.dart'; |
9 | 9 |
10 main() { | 10 main() { |
11 void initPage() { | 11 void initPage() { |
12 var level1 = new UListElement() | 12 var level1 = new UListElement() |
13 ..classes.add('level-1') | 13 ..classes.add('level-1') |
14 ..children.add(new LIElement()..innerHtml = 'I'); | 14 ..children.add(new LIElement()..innerHtml = 'I'); |
15 var itemii = new LIElement() | 15 var itemii = new LIElement() |
16 ..classes.add('item-ii') | 16 ..classes.add('item-ii') |
17 ..style.position = 'relative' | 17 ..style.position = 'relative' |
18 ..style.top = '4px' | 18 ..style.top = '4px' |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 expect(baz.documentOffset.y, 608); | 128 expect(baz.documentOffset.y, 608); |
129 | 129 |
130 expect(qux.documentOffset.x, 8); | 130 expect(qux.documentOffset.x, 8); |
131 expect(qux.documentOffset.y, inInclusiveRange(203, 240)); | 131 expect(qux.documentOffset.y, inInclusiveRange(203, 240)); |
132 | 132 |
133 expect(quux.documentOffset.x, 8); | 133 expect(quux.documentOffset.x, 8); |
134 expect(quux.documentOffset.y, inInclusiveRange(203, 240)); | 134 expect(quux.documentOffset.y, inInclusiveRange(203, 240)); |
135 }); | 135 }); |
136 }); | 136 }); |
137 } | 137 } |
OLD | NEW |