зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1719449 - Store fragment URL after we're sure we've scrolled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D119582
This commit is contained in:
Родитель
d46be492d2
Коммит
677adecb5d
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче