mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Roll chromium to r491334 (#187)
This patch rolls chromium to r491334 This revision includes @pavelfeldman changes to make dialogs work in headless.
This commit is contained in:
parent
5d647bf1fa
commit
dbe8660082
@ -29,7 +29,7 @@
|
||||
"ws": "^3.0.0"
|
||||
},
|
||||
"puppeteer": {
|
||||
"chromium_revision": "490379"
|
||||
"chromium_revision": "491334"
|
||||
},
|
||||
"devDependencies": {
|
||||
"commonmark": "^0.27.0",
|
||||
|
@ -755,14 +755,14 @@ describe('Page', function() {
|
||||
});
|
||||
|
||||
describe('Page.Events.Dialog', function() {
|
||||
it('should fire', function(done) {
|
||||
it('should fire', SX(async function() {
|
||||
page.on('dialog', dialog => {
|
||||
expect(dialog.type).toBe('alert');
|
||||
expect(dialog.message()).toBe('yo');
|
||||
done();
|
||||
dialog.accept();
|
||||
});
|
||||
page.evaluate(() => alert('yo'));
|
||||
});
|
||||
await page.evaluate(() => alert('yo'));
|
||||
}));
|
||||
// TODO Enable this when crbug.com/718235 is fixed.
|
||||
(headless ? xit : it)('should allow accepting prompts', SX(async function(done) {
|
||||
page.on('dialog', dialog => {
|
||||
|
@ -30,7 +30,4 @@ test(function () {
|
||||
page.onConfirm = undefined;
|
||||
assert_equals(page.onConfirm, undefined);
|
||||
|
||||
}, "page.onConfirm", {
|
||||
/* @see crbug.com/718235 */
|
||||
expected_fail: true
|
||||
});
|
||||
}, "page.onConfirm");
|
||||
|
Loading…
Reference in New Issue
Block a user