Index: client/tests/client/samples/total/total_test_lib.dart |
diff --git a/client/tests/client/samples/total/total_test_lib.dart b/client/tests/client/samples/total/total_test_lib.dart |
index 835410f8955e044c996304db657972a7b458bda5..826f36a0575a378dc063a43a2049f778a54119cb 100644 |
--- a/client/tests/client/samples/total/total_test_lib.dart |
+++ b/client/tests/client/samples/total/total_test_lib.dart |
@@ -57,8 +57,8 @@ totalTests() { |
body.nodes.add(div); |
HtmlUtils.setIntegerProperty(div, "left", 100, "px"); |
- window.requestMeasurementFrame(() { |
- String valueAsString = div.computedStyle.left; |
+ div.computedStyle.then((CSSStyleDeclaration computedStyle) { |
+ String valueAsString = computedStyle.getPropertyValue("left"); |
// FIXME: Test fails, with valueAsString == "auto". However, |
// setIntegerProperty works when tested in practice, so there is |
// something wrong with recovering the value. |