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

Unified Diff: tests/html/css_test.dart

Issue 605083004: Merge 38 changes to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months 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
« no previous file with comments | « tests/co19/co19-dartium.status ('k') | tools/dartium/archive.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
});
});
« no previous file with comments | « tests/co19/co19-dartium.status ('k') | tools/dartium/archive.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698