test: cleanup tests (#4078)

- move Connection test into CDPSession.spec.js
- remove a nasty test that was reaching into implementation details
This commit is contained in:
Andrey Lushnikov
2019-02-26 20:36:55 -08:00
committed by GitHub
parent dae998ec06
commit e8a49633d9
3 changed files with 10 additions and 22 deletions

View File

@@ -34,16 +34,5 @@ module.exports.addTests = function({testRunner, expect}) {
return promise.then(() => reader.result);
}, input)).toBe('contents of the file');
});
it_fails_ffox('keyboard.modifiers()', async({page, server}) => {
const keyboard = page.keyboard;
expect(keyboard._modifiers).toBe(0);
await keyboard.down('Shift');
expect(keyboard._modifiers).toBe(8);
await keyboard.down('Alt');
expect(keyboard._modifiers).toBe(9);
await keyboard.up('Shift');
await keyboard.up('Alt');
expect(keyboard._modifiers).toBe(0);
});
});
};