summaryrefslogtreecommitdiff
path: root/layout/forms/test/test_bug562447.html
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-23 08:01:32 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-23 08:01:32 -0500
commit38e595cb2d37cb30b094e9e79c9a73ef16baab1a (patch)
tree6a479babf0ae47dd4a57d50a2747775aed5dc52e /layout/forms/test/test_bug562447.html
parenta4adb6827f02bd4a34ab9c650127853d2e46bccb (diff)
parent7eb2c156ba826a0ebf05db56a9fccf46094478ea (diff)
downloaduxp-38e595cb2d37cb30b094e9e79c9a73ef16baab1a.tar.gz
Merge branch 'master' into eme
Diffstat (limited to 'layout/forms/test/test_bug562447.html')
-rw-r--r--layout/forms/test/test_bug562447.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layout/forms/test/test_bug562447.html b/layout/forms/test/test_bug562447.html
index 53f84428e5..99f6918711 100644
--- a/layout/forms/test/test_bug562447.html
+++ b/layout/forms/test/test_bug562447.html
@@ -23,7 +23,7 @@ addLoadEvent(function() {
setTimeout(function() {
// Make sure that we're scrolled by 5000px
- is(window.pageYOffset, 5000, "Make sure we're scrolled correctly");
+ is(Math.round(window.pageYOffset), 5000, "Make sure we're scrolled correctly");
// Scroll back up, and mess with the input box along the way
var input = document.getElementById("WhyDoYouFocusMe");
@@ -38,14 +38,14 @@ addLoadEvent(function() {
window.scrollTo(0, 5000);
setTimeout(function() {
- is(window.pageYOffset, 5000, "Sanity check");
+ is(Math.round(window.pageYOffset), 5000, "Sanity check");
window.scrollTo(0, 0);
input.focus();
input.blur();
setTimeout(function() {
- isnot(window.pageYOffset, 0, "This time we shouldn't be scrolled up");
+ isnot(Math.round(window.pageYOffset), 0, "This time we shouldn't be scrolled up");
SimpleTest.finish();
}, 0);