test: uncomment more webkit tests (#461)
This commit is contained in:
parent
16cedfe9da
commit
00057df92b
|
|
@ -10,7 +10,7 @@
|
|||
"playwright": {
|
||||
"chromium_revision": "724623",
|
||||
"firefox_revision": "1011",
|
||||
"webkit_revision": "1082"
|
||||
"webkit_revision": "1084"
|
||||
},
|
||||
"scripts": {
|
||||
"unit": "node test/test.js",
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
|
|||
};
|
||||
expect(findFocusedNode(await page.accessibility.snapshot({interestingOnly: false}))).toEqual(golden);
|
||||
});
|
||||
it.skip(WEBKIT)('roledescription', async({page}) => {
|
||||
it('roledescription', async({page}) => {
|
||||
await page.setContent('<div tabIndex=-1 aria-roledescription="foo">Hi</div>');
|
||||
const snapshot = await page.accessibility.snapshot();
|
||||
expect(snapshot.children[0].roledescription).toEqual('foo');
|
||||
|
|
@ -178,6 +178,20 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
|
|||
role: 'pagetab',
|
||||
name: 'Tab2'
|
||||
}]
|
||||
} : WEBKIT ? {
|
||||
role: 'WebArea',
|
||||
name: '',
|
||||
roledescription: 'HTML content',
|
||||
children: [{
|
||||
role: 'tab',
|
||||
name: 'Tab1',
|
||||
roledescription: 'tab',
|
||||
selected: true
|
||||
}, {
|
||||
role: 'tab',
|
||||
name: 'Tab2',
|
||||
roledescription: 'tab',
|
||||
}]
|
||||
} : {
|
||||
role: 'WebArea',
|
||||
name: '',
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROME, WEBKIT, MA
|
|||
await page.hover('#button-6');
|
||||
expect(await page.evaluate(() => document.querySelector('button:hover').id)).toBe('button-6');
|
||||
});
|
||||
it.skip(WEBKIT)('should set modifier keys on click', async({page, server}) => {
|
||||
it('should set modifier keys on click', async({page, server}) => {
|
||||
await page.goto(server.PREFIX + '/input/scrollable.html');
|
||||
await page.evaluate(() => document.querySelector('#button-3').addEventListener('mousedown', e => window.lastEvent = e, true));
|
||||
const modifiers = {'Shift': 'shiftKey', 'Control': 'ctrlKey', 'Alt': 'altKey', 'Meta': 'metaKey'};
|
||||
|
|
@ -145,7 +145,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROME, WEBKIT, MA
|
|||
]);
|
||||
});
|
||||
// @see https://crbug.com/929806
|
||||
it.skip(WEBKIT)('should work with mobile viewports and cross process navigations', async({page, server}) => {
|
||||
it('should work with mobile viewports and cross process navigations', async({page, server}) => {
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.setViewport({width: 360, height: 640, isMobile: true});
|
||||
await page.goto(server.CROSS_PROCESS_PREFIX + '/mobile.html');
|
||||
|
|
|
|||
Loading…
Reference in a new issue