diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-08-10 18:01:49 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-21 19:52:35 +0100 |
commit | 88b5da7dd85d3e9859189824bea76c887eafab79 (patch) | |
tree | b4f563927fa6f72db494b9a7ae2b846781b2da35 /dom/browser-element/mochitest/browserElement_ScrollEvent.js | |
parent | 33ebe8d4ce87d38b3121a98fbaf714aa78550508 (diff) | |
download | uxp-88b5da7dd85d3e9859189824bea76c887eafab79.tar.gz |
JS - make window.pageYOffset/pageXOffset/scrollX/scrollY double
Diffstat (limited to 'dom/browser-element/mochitest/browserElement_ScrollEvent.js')
-rw-r--r-- | dom/browser-element/mochitest/browserElement_ScrollEvent.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/browser-element/mochitest/browserElement_ScrollEvent.js b/dom/browser-element/mochitest/browserElement_ScrollEvent.js index 5c4b4dcf97..06dc91b862 100644 --- a/dom/browser-element/mochitest/browserElement_ScrollEvent.js +++ b/dom/browser-element/mochitest/browserElement_ScrollEvent.js @@ -16,8 +16,8 @@ function runTest() { iframe.addEventListener("mozbrowserscroll", function(e) { ok(true, "got mozbrowserscroll event."); ok(e.detail, "event.detail is not null."); - ok(e.detail.top === 4000, "top position is correct."); - ok(e.detail.left === 4000, "left position is correct."); + ok(Math.round(e.detail.top) == 4000, "top position is correct."); + ok(Math.round(e.detail.left) == 4000, "left position is correct."); SimpleTest.finish(); }); |