| Index: tests/html/measurement_test.dart
|
| diff --git a/tests/html/measurement_test.dart b/tests/html/measurement_test.dart
|
| index 115757cc762c1fbbae3f8e982ebe628c28c30782..7d77bb8a74a79a375c918ad5be2632fa1ecccf35 100644
|
| --- a/tests/html/measurement_test.dart
|
| +++ b/tests/html/measurement_test.dart
|
| @@ -21,19 +21,21 @@ main() {
|
| expect(fnComplete, isTrue);
|
| expect(timeout0, isFalse);
|
| }));
|
| - expect(computedStyle.isComplete, isFalse);
|
| fnComplete = true;
|
| });
|
|
|
| test('requestLayoutFrame', () {
|
| var computedStyle;
|
| + var computedStyleCalled = false;
|
| window.requestLayoutFrame(expectAsync0(() {
|
| - expect(computedStyle.isComplete, true);
|
| + expect(computedStyleCalled, true);
|
| }));
|
|
|
| final element = document.body;
|
| computedStyle = element.computedStyle;
|
| - expect(computedStyle.isComplete, isFalse);
|
| + computedStyle.then(expectAsync1((style) {
|
| + computedStyleCalled = true;
|
| + }));
|
| });
|
|
|
| // TODO(jacobr): add more tests that the results return by measurement
|
|
|