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

Unified Diff: tests/html/css_test.dart

Issue 589253002: Revert "Chrome 38 script changes from integration branch" (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 | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tools/dom/dom.json » ('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 fe2837fbfed86a15bfa4d8d549b7ec3e1a7b5b3e..deda6c5dc13f78a237bb494901349e9456c6b671 100644
--- a/tests/html/css_test.dart
+++ b/tests/html/css_test.dart
@@ -30,10 +30,12 @@ main() {
''';
document.body.append(element);
- var elemRect = element.getBoundingClientRect();
-
- checkPoint(250, 100, new Point(elemRect.left, elemRect.top));
- checkPoint(310, 200, new Point(elemRect.right, elemRect.bottom));
+ 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));
}, expectation);
});
});
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tools/dom/dom.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698