mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
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:
parent
5b25fd7070
commit
9086fe8222
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user