feat(chromium): roll Chromium to r717627 (#49)

This commit is contained in:
Pavel Feldman 2019-11-21 21:16:00 -08:00 committed by GitHub
parent b64304ecbc
commit f223a98e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 9 deletions

View File

@ -8,7 +8,7 @@
"node": ">=8.16.0" "node": ">=8.16.0"
}, },
"playwright": { "playwright": {
"chromium_revision": "706915", "chromium_revision": "717627",
"firefox_revision": "1", "firefox_revision": "1",
"webkit_revision": "2" "webkit_revision": "2"
}, },

View File

@ -102,7 +102,7 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
focused: true, focused: true,
multiline: true, multiline: true,
children: [{ children: [{
role: 'GenericContainer', role: 'generic',
name: '', name: '',
children: [{ children: [{
role: 'text', name: 'hi' role: 'text', name: 'hi'
@ -184,7 +184,7 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
name: 'my fake image' name: 'my fake image'
}] }]
} : { } : {
role: 'GenericContainer', role: 'generic',
name: '', name: '',
value: 'Edit this image: ', value: 'Edit this image: ',
children: [{ children: [{
@ -243,7 +243,7 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
<div contenteditable="plaintext-only">Edit this image:<img src="fakeimage.png" alt="my fake image"></div>`); <div contenteditable="plaintext-only">Edit this image:<img src="fakeimage.png" alt="my fake image"></div>`);
const snapshot = await page.accessibility.snapshot(); const snapshot = await page.accessibility.snapshot();
expect(snapshot.children[0]).toEqual({ expect(snapshot.children[0]).toEqual({
role: 'GenericContainer', role: 'generic',
name: '' name: ''
}); });
}); });
@ -252,7 +252,7 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
<div contenteditable="plaintext-only" tabIndex=0>Edit this image:<img src="fakeimage.png" alt="my fake image"></div>`); <div contenteditable="plaintext-only" tabIndex=0>Edit this image:<img src="fakeimage.png" alt="my fake image"></div>`);
const snapshot = await page.accessibility.snapshot(); const snapshot = await page.accessibility.snapshot();
expect(snapshot.children[0]).toEqual({ expect(snapshot.children[0]).toEqual({
role: 'GenericContainer', role: 'generic',
name: '' name: ''
}); });
}); });
@ -362,10 +362,21 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
const div = await page.$('div'); const div = await page.$('div');
expect(await page.accessibility.snapshot({root: div})).toEqual(null); expect(await page.accessibility.snapshot({root: div})).toEqual(null);
expect(await page.accessibility.snapshot({root: div, interestingOnly: false})).toEqual({ expect(await page.accessibility.snapshot({root: div, interestingOnly: false})).toEqual({
role: 'GenericContainer', role: 'generic',
name: '', name: '',
children: [ { role: 'button', name: 'My Button' } ] } children: [
); {
role: 'button',
name: 'My Button',
children: [
{
role: "text",
name: "My Button"
}
],
}
]
});
}); });
}); });
}); });

View File

@ -16,7 +16,7 @@
*/ */
const assert = require('assert'); const assert = require('assert');
const playwright = require('..'); const playwright = require('../chromium');
const https = require('https'); const https = require('https');
const SUPPORTER_PLATFORMS = ['linux', 'mac', 'win32', 'win64']; const SUPPORTER_PLATFORMS = ['linux', 'mac', 'win32', 'win64'];