Skip to content

Commit

Permalink
fix: add favicon test asset (#6868)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Feb 11, 2021
1 parent 0889b7e commit a63f53c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Binary file added test/assets/favicon.ico
Binary file not shown.
10 changes: 6 additions & 4 deletions test/assets/offscreenbuttons.html
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<style>
button {
position: absolute;
Expand Down Expand Up @@ -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>
2 changes: 1 addition & 1 deletion test/click.spec.ts
Expand Up @@ -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');
Expand Down

0 comments on commit a63f53c

Please sign in to comment.