зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1444491 - Update existing internal tests based on the autofocus algorithm updates r=emilio
These test behavior changes after the autofocus algorithm updates. Differential Revision: https://phabricator.services.mozilla.com/D162034
This commit is contained in:
Родитель
ca05ee55cf
Коммит
6b5798cb94
|
@ -2,6 +2,6 @@
|
|||
<html>
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body>
|
||||
<input><textarea></textarea><select></select><button></button>
|
||||
<input autofocus><textarea></textarea><select></select><button></button>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -25,6 +25,13 @@ add_task(async function() {
|
|||
backgroundTab.linkedBrowser,
|
||||
[],
|
||||
async function() {
|
||||
// Spec asks us to flush autofocus candidates in the
|
||||
// `update-the-rendering` step, so we need to wait
|
||||
// for a rAF to ensure autofocus candidates are
|
||||
// flushed.
|
||||
await new Promise(r => {
|
||||
content.requestAnimationFrame(r);
|
||||
});
|
||||
return content.document.activeElement.tagName;
|
||||
}
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче