Bug 1719449 - Store fragment URL after we're sure we've scrolled. r=smaug a=test-only DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D119582
This commit is contained in:
Matt Woodrow 2021-07-13 22:11:24 +00:00
parent 5b25fd7070
commit 9086fe8222

View File

@ -62,15 +62,15 @@
waitForNextPaint(nextTest);
yield undefined;
// Store the fragment url for later comparison.
var fragmentUrl = TestWindow.getBrowser().currentURI.spec;
var fragDocLocation = TestWindow.getDocument().location.href;
// Verify we're no longer at the top of the page.
waitForTrue(function() {
return TestWindow.getWindow().scrollY > 0;
}, nextTest, 20);
yield undefined;
// Store the fragment url for later comparison.
var fragmentUrl = TestWindow.getBrowser().currentURI.spec;
var fragDocLocation = TestWindow.getDocument().location.href;
// Now navigate to any other page
var expectedPageTitle = "bug360511 case " + i;