xref: /third_party/node/test/wpt/test-webcrypto.js (revision 1cb0ef41)
1'use strict';
2
3const common = require('../common');
4if (!common.hasCrypto)
5  common.skip('missing crypto');
6
7const { WPTRunner } = require('../common/wpt');
8
9const runner = new WPTRunner('WebCryptoAPI');
10
11// Set Node.js flags required for the tests.
12runner.setFlags(['--experimental-global-webcrypto']);
13
14runner.setInitScript(`
15  global.location = {};
16`);
17
18runner.runJsTests();
19