OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 void testMeasurement() { | 5 void testMeasurement() { |
6 asyncTest('measurement is async but before setTimout 0', 1, () { | 6 asyncTest('measurement is async but before setTimout 0', 1, () { |
7 final element = document.body; | 7 final element = document.body; |
8 bool timeout0 = false; | 8 bool timeout0 = false; |
9 bool fnComplete = false; | 9 bool fnComplete = false; |
10 bool animationFrame = false; | 10 bool animationFrame = false; |
(...skipping 22 matching lines...) Expand all Loading... |
33 final element = document.body; | 33 final element = document.body; |
34 rect = element.rect; | 34 rect = element.rect; |
35 computedStyle = element.computedStyle; | 35 computedStyle = element.computedStyle; |
36 Expect.isFalse(rect.isComplete); | 36 Expect.isFalse(rect.isComplete); |
37 Expect.isFalse(computedStyle.isComplete); | 37 Expect.isFalse(computedStyle.isComplete); |
38 }); | 38 }); |
39 | 39 |
40 // TODO(jacobr): add more tests that the results return by measurement | 40 // TODO(jacobr): add more tests that the results return by measurement |
41 // functions are correct. | 41 // functions are correct. |
42 } | 42 } |
OLD | NEW |