mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
test: fix a failing screenshot test for BiDi (#11675)
This commit is contained in:
parent
a87a035879
commit
3465e3012b
@ -3368,12 +3368,6 @@
|
|||||||
"parameters": ["cdp", "firefox"],
|
"parameters": ["cdp", "firefox"],
|
||||||
"expectations": ["FAIL", "PASS"]
|
"expectations": ["FAIL", "PASS"]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"testIdPattern": "[screenshot.spec] Screenshots Page.screenshot should work with odd clip size on Retina displays",
|
|
||||||
"platforms": ["darwin", "linux", "win32"],
|
|
||||||
"parameters": ["firefox", "webDriverBiDi"],
|
|
||||||
"expectations": ["FAIL"]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"testIdPattern": "[stacktrace.spec] Stack trace should work for none error objects",
|
"testIdPattern": "[stacktrace.spec] Stack trace should work for none error objects",
|
||||||
"platforms": ["darwin", "linux", "win32"],
|
"platforms": ["darwin", "linux", "win32"],
|
||||||
|
@ -148,6 +148,9 @@ describe('Screenshots', function () {
|
|||||||
it('should work with odd clip size on Retina displays', async () => {
|
it('should work with odd clip size on Retina displays', async () => {
|
||||||
const {page} = await getTestState();
|
const {page} = await getTestState();
|
||||||
|
|
||||||
|
// Make sure documentElement height is at least 11px.
|
||||||
|
await page.setContent(`<div style="width: 11px; height: 11px;">`);
|
||||||
|
|
||||||
const screenshot = await page.screenshot({
|
const screenshot = await page.screenshot({
|
||||||
clip: {
|
clip: {
|
||||||
x: 0,
|
x: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user