diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-23 08:01:32 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-23 08:01:32 -0500 |
commit | 38e595cb2d37cb30b094e9e79c9a73ef16baab1a (patch) | |
tree | 6a479babf0ae47dd4a57d50a2747775aed5dc52e /layout/forms/test/test_bug562447.html | |
parent | a4adb6827f02bd4a34ab9c650127853d2e46bccb (diff) | |
parent | 7eb2c156ba826a0ebf05db56a9fccf46094478ea (diff) | |
download | uxp-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.html | 6 |
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); |