| Index: client/tests/client/samples/total/total_tests.dart
|
| diff --git a/client/tests/client/samples/total/total_tests.dart b/client/tests/client/samples/total/total_tests.dart
|
| index 3e9271a0dc0a974ee8aa36f8da06651d0bbc15b0..27b362e29c838c582f1ea8ab31a42ea08eeda6c1 100644
|
| --- a/client/tests/client/samples/total/total_tests.dart
|
| +++ b/client/tests/client/samples/total/total_tests.dart
|
| @@ -51,7 +51,7 @@ main() {
|
| Expect.isTrue(years - years.floor() < 0.1, "7/7");
|
| });
|
|
|
| - test('HtmlUtils', () {
|
| + asyncTest('HtmlUtils', 1, () {
|
| Expect.equals("", HtmlUtils.quoteHtml(""));
|
| Expect.equals("<", HtmlUtils.quoteHtml("<"));
|
| Expect.equals("<<<<", HtmlUtils.quoteHtml("<<<<"));
|
| @@ -68,14 +68,16 @@ main() {
|
| body.nodes.add(div);
|
|
|
| HtmlUtils.setIntegerProperty(div, "left", 100, "px");
|
| - CSSStyleDeclaration computedStyle = window.getComputedStyle(div, "");
|
| - 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.
|
| - // Expect.equals("100", valueAsString);
|
| -
|
| - div.remove();
|
| + 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.
|
| + // Expect.equals("100", valueAsString);
|
| +
|
| + div.remove();
|
| + callbackDone();
|
| + });
|
| });
|
|
|
| test('StringUtils', () {
|
|
|