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:
Mathias Bynens 2021-02-11 12:54:45 +01:00 committed by GitHub
parent 0889b7eb66
commit a63f53c938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

BIN
test/assets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

View File

@ -1,3 +1,4 @@
<!DOCTYPE html>
<style> <style>
button { button {
position: absolute; position: absolute;
@ -29,8 +30,9 @@
<button id=btn9>9</button> <button id=btn9>9</button>
<button id=btn10>10</button> <button id=btn10>10</button>
<script> <script>
window.addEventListener('DOMContentLoaded', () => { for (const button of document.querySelectorAll('button')) {
for (const button of Array.from(document.querySelectorAll('button'))) button.addEventListener('click', () => {
button.addEventListener('click', () => console.log('button #' + button.textContent + ' clicked'), false); console.log(`button #${button.textContent} clicked`);
}, false); });
}
</script> </script>

View File

@ -132,7 +132,7 @@ describe('Page.click', function () {
}) })
).toBe(text); ).toBe(text);
}); });
itFailsFirefox('should click offscreen buttons', async () => { it('should click offscreen buttons', async () => {
const { page, server } = getTestState(); const { page, server } = getTestState();
await page.goto(server.PREFIX + '/offscreenbuttons.html'); await page.goto(server.PREFIX + '/offscreenbuttons.html');