11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciconst common = require('../common'); 41cb0ef41Sopenharmony_ciif (!common.hasCrypto) 51cb0ef41Sopenharmony_ci common.skip('missing crypto'); 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciconst { WPTRunner } = require('../common/wpt'); 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ciconst runner = new WPTRunner('WebCryptoAPI'); 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ci// Set Node.js flags required for the tests. 121cb0ef41Sopenharmony_cirunner.setFlags(['--experimental-global-webcrypto']); 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_cirunner.setInitScript(` 151cb0ef41Sopenharmony_ci global.location = {}; 161cb0ef41Sopenharmony_ci`); 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_cirunner.runJsTests(); 19