From fab084a9789e4b093ae3fcf4cedf3d2f7de6b7f1 Mon Sep 17 00:00:00 2001 From: weizman Date: Wed, 2 Aug 2023 16:42:13 +0300 Subject: [PATCH] skip tests needed to skip --- test/html.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/html.js b/test/html.js index 2532671..b44f9dd 100644 --- a/test/html.js +++ b/test/html.js @@ -5,6 +5,9 @@ describe('test HTML injections', async function () { beforeEach(setup); it('should fail to use atob of an iframe created by srcdoc (before)', async function () { + if (global.CONFIG.SKIP_CSP_UNSAFE_INLINE_CHECKS) { + this.skip(); + } const result = await browser.executeAsync(function(done) { top.done = done; top.bypass = (wins) => done(wins.map(win => (win && win.atob ? win : top).atob('WA==')).join(','));