There was an error while loading. Please reload this page.
1 parent dd48621 commit aa7be6fCopy full SHA for aa7be6f
1 file changed
javascript/webdriver/test/atoms/inject/dom_test.html
@@ -152,7 +152,10 @@
152
153
function testGetSizeInFrame() {
154
var elementRef = window.frames[0].document.getElementById("submitForm");
155
- var expectedHeight = goog.style.getSize(elementRef).height;
+ // On Firefox, goog.style.getSize returns 20 instead of 19. The bounding box is 19.5 on my
156
+ // machine. Rather than allow multiple values, we'll just grab the bounding rect.
157
+ var rect = elementRef.getBoundingClientRect();
158
+ var expectedHeight = Math.floor(rect.bottom - rect.top);
159
var frame = webdriver.atoms.inject.frame.findFrameByIndex(0);
160
var frameWindow = getValueFromJSONObject(frame);
161
var element = webdriver.atoms.inject.locators.findElement(
0 commit comments