spec: fix conditions for some tests (#23489)

This commit is contained in:
Alexey Kuzmin 2020-05-11 03:46:45 +02:00 committed by GitHub
parent 6114518463
commit dc3de49a08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 10 deletions

View file

@ -1009,13 +1009,7 @@ describe('<webview> tag', function () {
});
});
describe('<webview>.printToPDF()', () => {
before(() => {
if (!features.isPrintingEnabled()) {
this.skip();
}
});
ifdescribe(features.isPrintingEnabled())('<webview>.printToPDF()', () => {
it('rejects on incorrectly typed parameters', async () => {
const badTypes = {
marginsType: 'terrible',