fix: add favicon test asset (#6868)
The favicon was taken from https://github.com/mathiasbynens/small. Issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1682076
This commit is contained in:
parent
0889b7eb66
commit
a63f53c938
BIN
test/assets/favicon.ico
Normal file
BIN
test/assets/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 70 B |
@ -1,3 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<style>
|
||||
button {
|
||||
position: absolute;
|
||||
@ -29,8 +30,9 @@
|
||||
<button id=btn9>9</button>
|
||||
<button id=btn10>10</button>
|
||||
<script>
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
for (const button of Array.from(document.querySelectorAll('button')))
|
||||
button.addEventListener('click', () => console.log('button #' + button.textContent + ' clicked'), false);
|
||||
}, false);
|
||||
for (const button of document.querySelectorAll('button')) {
|
||||
button.addEventListener('click', () => {
|
||||
console.log(`button #${button.textContent} clicked`);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
@ -132,7 +132,7 @@ describe('Page.click', function () {
|
||||
})
|
||||
).toBe(text);
|
||||
});
|
||||
itFailsFirefox('should click offscreen buttons', async () => {
|
||||
it('should click offscreen buttons', async () => {
|
||||
const { page, server } = getTestState();
|
||||
|
||||
await page.goto(server.PREFIX + '/offscreenbuttons.html');
|
||||
|
Loading…
Reference in New Issue
Block a user