mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
JS - make window.pageYOffset/pageXOffset/scrollX/scrollY double
This commit is contained in:
parent
e64a819dc3
commit
49ffafc979
16 changed files with 133 additions and 55 deletions
|
|
@ -30,12 +30,12 @@ addLoadEvent(function() {
|
|||
win.scrollTo(0, 5000);
|
||||
|
||||
setTimeout(function() {
|
||||
is(win.pageYOffset, 5000, "Page should be scrolled correctly");
|
||||
is(Math.round(win.pageYOffset), 5000, "Page should be scrolled correctly");
|
||||
|
||||
// Refocus the window
|
||||
SimpleTest.waitForFocus(function() {
|
||||
SimpleTest.waitForFocus(function() {
|
||||
is(win.pageYOffset, 5000,
|
||||
is(Math.round(win.pageYOffset), 5000,
|
||||
"The page's scroll offset should not have been changed");
|
||||
|
||||
win.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue