mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
parent
8aaca4eb1e
commit
3d82465f66
@ -1201,6 +1201,7 @@ class LifecycleWatcher {
|
|||||||
this._terminationPromise = new Promise(fulfill => {
|
this._terminationPromise = new Promise(fulfill => {
|
||||||
this._terminationCallback = fulfill;
|
this._terminationCallback = fulfill;
|
||||||
});
|
});
|
||||||
|
this._checkLifecycleComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -601,6 +601,10 @@ module.exports.addTests = function({testRunner, expect, headless}) {
|
|||||||
imgResponse.end();
|
imgResponse.end();
|
||||||
await contentPromise;
|
await contentPromise;
|
||||||
});
|
});
|
||||||
|
it('should work fast enough', async({page, server}) => {
|
||||||
|
for (let i = 0; i < 20; ++i)
|
||||||
|
await page.setContent('<div>yo</div>');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Page.setBypassCSP', function() {
|
describe('Page.setBypassCSP', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user