Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix positioning test for chrome-linux. Browser size change

is causing bad values on positioning.

R=chrishenry
DELTA=5 (4 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6264


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2511 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
commit ab09db2d622156031b90c33bd44ddd6dd7446da1 1 parent 2194df1
nnaze@google.com authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 closure/goog/positioning/positioning_test.html
View
6 closure/goog/positioning/positioning_test.html
@@ -479,12 +479,16 @@
popup, corner.TOP_START);
anchorRect = goog.style.getBounds(anchor);
popupRect = goog.style.getBounds(popup);
+
+ var visibleAnchorRect = goog.positioning.getVisiblePart_(anchor);
+ var visibleAnchorBox = visibleAnchorRect.toBox();
+
assertRoundedEquals('Right edge of popup should line up with right edge ' +
'of anchor.',
anchorRect.left + anchorRect.width,
popupRect.left + popupRect.width);
assertRoundedEquals('Popup should be positioned just below the anchor.',
- anchorRect.top + anchorRect.height,
+ visibleAnchorBox.bottom,
popupRect.top);
}
Please sign in to comment.
Something went wrong with that request. Please try again.