Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: tests/html/element_test.dart

Issue 11367040: Removing Element.rect. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/html/element_test.dart
diff --git a/tests/html/element_test.dart b/tests/html/element_test.dart
index 511eef7d091764d79c81263e4a7d8c478cbd0b78..ff6e158106ec9b578285e0d004bd0ef3754db236 100644
--- a/tests/html/element_test.dart
+++ b/tests/html/element_test.dart
@@ -67,28 +67,6 @@ main() {
}));
});
- test('rect', () {
- final container = new Element.tag("div");
- container.style.position = 'absolute';
- container.style.top = '8px';
- container.style.left = '8px';
- final element = new Element.tag("div");
- element.style.width = '200px';
- element.style.height = '200px';
- container.elements.add(element);
- document.body.elements.add(container);
-
- element.rect.then(expectAsync1((rect) {
- expectLargeRect(rect.client);
- expectLargeRect(rect.offset);
- expectLargeRect(rect.scroll);
- expect(rect.bounding.left, 8);
- expect(rect.bounding.top, 8);
- expect(rect.clientRects.length, greaterThan(0));
- container.remove();
- }));
- });
-
test('client position synchronous', () {
final container = new Element.tag("div");
container.style.position = 'absolute';

Powered by Google App Engine
This is Rietveld 408576698