CI: test latest Safari
This commit is contained in:
parent
18333999a2
commit
dcd28fadc6
|
@ -45,7 +45,7 @@
|
||||||
"prebrowsertest": "npm run build-test",
|
"prebrowsertest": "npm run build-test",
|
||||||
"browsertest": "npm start -- -o test/unittests.html",
|
"browsertest": "npm start -- -o test/unittests.html",
|
||||||
"test-browser": "karma start test/karma.conf.js",
|
"test-browser": "karma start test/karma.conf.js",
|
||||||
"test-browserstack": "karma start test/karma.conf.js --browsers bs_safari_15,bs_ios_15,bs_safari_13_1",
|
"test-browserstack": "karma start test/karma.conf.js --browsers bs_safari_latest,bs_ios_15,bs_safari_13_1",
|
||||||
"coverage": "nyc npm test",
|
"coverage": "nyc npm test",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"docs": "jsdoc --configure .jsdocrc.js --destination docs --recurse README.md src && printf '%s' 'docs.openpgpjs.org' > docs/CNAME",
|
"docs": "jsdoc --configure .jsdocrc.js --destination docs --recurse README.md src && printf '%s' 'docs.openpgpjs.org' > docs/CNAME",
|
||||||
|
|
|
@ -95,12 +95,12 @@ module.exports = function(config) {
|
||||||
|
|
||||||
// define browsers
|
// define browsers
|
||||||
customLaunchers: {
|
customLaunchers: {
|
||||||
bs_safari_15: { // Webkit and Safari can differ in behavior
|
bs_safari_latest: { // Webkit and Safari can differ in behavior
|
||||||
base: 'BrowserStack',
|
base: 'BrowserStack',
|
||||||
browser: 'Safari',
|
browser: 'Safari',
|
||||||
browser_version: '15',
|
browser_version: 'latest',
|
||||||
os: 'OS X',
|
os: 'OS X',
|
||||||
os_version: 'Big Sur'
|
os_version: 'Ventura'
|
||||||
},
|
},
|
||||||
bs_safari_13_1: { // no BigInt support
|
bs_safari_13_1: { // no BigInt support
|
||||||
base: 'BrowserStack',
|
base: 'BrowserStack',
|
||||||
|
|
|
@ -31,9 +31,9 @@ describe('Unit Tests', function () {
|
||||||
openpgp.config.s2kIterationCountByte = 0;
|
openpgp.config.s2kIterationCountByte = 0;
|
||||||
|
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
// Safari 14.1.* seem to have issues handling rejections when their native TransformStream implementation is involved,
|
// Safari 14.1.*, 15.* and 16.* seem to have issues handling rejections when their native TransformStream implementation is involved,
|
||||||
// so for now we ignore unhandled rejections for those browser versions.
|
// so for now we ignore unhandled rejections for those browser versions.
|
||||||
if (!window.navigator.userAgent.match(/Version\/14\.1(\.\d)* Safari/)) {
|
if (!window.navigator.userAgent.match(/Version\/1(4|5|6)\.\d(\.\d)* Safari/)) {
|
||||||
window.addEventListener('unhandledrejection', function (event) {
|
window.addEventListener('unhandledrejection', function (event) {
|
||||||
throw event.reason;
|
throw event.reason;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user