Index: tests/html/css_test.dart |
diff --git a/tests/html/css_test.dart b/tests/html/css_test.dart |
index deda6c5dc13f78a237bb494901349e9456c6b671..fe2837fbfed86a15bfa4d8d549b7ec3e1a7b5b3e 100644 |
--- a/tests/html/css_test.dart |
+++ b/tests/html/css_test.dart |
@@ -30,12 +30,10 @@ main() { |
'''; |
document.body.append(element); |
- Point point = new Point(5, 2); |
- checkPoint(5, 2, point); |
- checkPoint(255, 102, window.convertPointFromNodeToPage(element, point)); |
- point = new Point(5, 100); |
- checkPoint(5, 100, point); |
- checkPoint(255, 200, window.convertPointFromNodeToPage(element, point)); |
+ var elemRect = element.getBoundingClientRect(); |
+ |
+ checkPoint(250, 100, new Point(elemRect.left, elemRect.top)); |
+ checkPoint(310, 200, new Point(elemRect.right, elemRect.bottom)); |
}, expectation); |
}); |
}); |