Source code

Revision control

Copy as Markdown

Other Tools

function clickSelectAndCaptureAppearance(select) {
if (document.documentElement.className !== 'reftest-wait') {
document.body.append('FAIL - html element needs reftest-wait');
return;
}
(async () => {
const select = document.querySelector('select');
await (new test_driver.Actions())
.pointerMove(1, 1, {origin: select})
.pointerDown()
.pointerUp()
.pointerMove(0, 0, {origin: document.body})
.send();
document.documentElement.classList.remove('reftest-wait');
})();
}