-
-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BREAKING] Introduce new headless mode (#2492)
* Introduce new headless mode * Add reference * Change workflow title * fix actions * fix test * fix a test * fix formatting * Fix auth tests * Fix a webworker test * Fix requestFinished * fix should be able to fetch dataURL and fire dataURL requests * dotnet format * Undo debugging thing * Improve test * Fix more tests * Fix CloseAsync race * fix build * change a test name * Fix response from cache test. * oops * Some fixes * fix test * Ignore a flaky test
- Loading branch information
Showing
26 changed files
with
355 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 26 additions & 26 deletions
52
lib/PuppeteerSharp.TestServer/wwwroot/input/scrollable.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<head> | ||
<title>Scrollable test</title> | ||
</head> | ||
<body> | ||
<script src='mouse-helper.js'></script> | ||
<script> | ||
for (let i = 0; i < 100; i++) { | ||
let button = document.createElement('button'); | ||
button.textContent = i + ': not clicked'; | ||
button.id = 'button-' + i; | ||
button.onclick = () => button.textContent = 'clicked'; | ||
button.oncontextmenu = event => { | ||
if (![2].includes(event.button)) { | ||
</head> | ||
<body> | ||
<script src='mouse-helper.js'></script> | ||
<script> | ||
for (let i = 0; i < 100; i++) { | ||
let button = document.createElement('button'); | ||
button.textContent = i + ': not clicked'; | ||
button.id = 'button-' + i; | ||
button.onclick = () => button.textContent = 'clicked'; | ||
button.oncontextmenu = event => { | ||
if (![2].includes(event.button)) { | ||
return; | ||
} | ||
event.preventDefault(); | ||
button.textContent = 'context menu'; | ||
} | ||
button.onmouseup = event => { | ||
if (![1,3,4].includes(event.button)) { | ||
event.preventDefault(); | ||
button.textContent = 'context menu'; | ||
} | ||
button.onmouseup = event => { | ||
if (![1,3,4].includes(event.button)) { | ||
return; | ||
} | ||
event.preventDefault(); | ||
button.textContent = { | ||
} | ||
event.preventDefault(); | ||
button.textContent = { | ||
3: 'back click', | ||
4: 'forward click', | ||
1: 'aux click', | ||
}[event.button]; | ||
} | ||
document.body.appendChild(button); | ||
document.body.appendChild(document.createElement('br')); | ||
}[event.button]; | ||
} | ||
</script> | ||
</body> | ||
document.body.appendChild(button); | ||
document.body.appendChild(document.createElement('br')); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.