Bug 1507217 - Make test_bug590573.html pass under GeckoView r=kats
authorJames Willcox <snorp@snorp.net>
Mon, 19 Nov 2018 21:42:50 +0000
changeset 507549 9df7b65b7e2ed026534155b1d21c6613154a3757
parent 507548 9fa6d8be9e0167bbb9345f3e18d4f3c07e5a2c79
child 507550 b11a6804aaca52027b9df7c228d28f1b317ad2d0
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1507217, 590573
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1507217 - Make test_bug590573.html pass under GeckoView r=kats Differential Revision: https://phabricator.services.mozilla.com/D11912
docshell/test/mochitest/test_bug590573.html
--- a/docshell/test/mochitest/test_bug590573.html
+++ b/docshell/test/mochitest/test_bug590573.html
@@ -213,17 +213,18 @@ function* testBody()
   setTimeout(pageLoad, 0);
   yield;
 
   page2PageShowCallbackEnabled = true;
   popup.history.forward();
   yield;
 
   // Bug 821821, on Android tegras we get 299 instead of 300 sometimes
-  if (popup.scrollY >= 299 && popup.scrollY <= 300) {
+  const scrollY = Math.floor(popup.scrollY);
+  if (scrollY >= 299 && scrollY <= 300) {
     is(1, 1, "test 11");
   } else {
     is(1, 0, "test 11, got " + popup.scrollY + " for popup.scrollY instead of 299|300");
   }
   popup.close();
 }
 </script>