chore(web): Merge branch 'chore/web/consistent-npm-types' into chore/web/add-web-test-runner-dep

This commit is contained in:
Joshua A. Horton 2024-05-09 08:11:02 +07:00
commit da71907eec
2 changed files with 30 additions and 6 deletions

View file

@ -4,9 +4,9 @@
var PRIMARY_LAUNCHERS = {
bs_safari_mac_m: {
browser: 'safari',
browser_version: '15.3',
browser_version: '17.3',
os: 'OS X',
os_version: 'Monterey'
os_version: 'Sonoma'
},
bs_chrome_win: {
os: 'Windows',

View file

@ -36,7 +36,13 @@ describe('ldml keyboard xml reader tests', function () {
callback: (data, source, subpath, callbacks) => {
assert.ok(source?.keyboard3?.keys);
const k = pluckKeysFromKeybag(source?.keyboard3?.keys.key, ['a', 'b', 'c']);
assert.sameDeepOrderedMembers(k, [
assert.sameDeepOrderedMembers(k.map((entry) => {
// Drop the Symbol members from the returned keys; assertions may expect their presence.
return {
id: entry.id,
output: entry.output
};
}), [
{id: 'a', output: 'a'},
{id: 'b', output: 'b'},
{id: 'c', output: 'c'},
@ -51,7 +57,13 @@ describe('ldml keyboard xml reader tests', function () {
callback: (data, source, subpath, callbacks) => {
assert.ok(source?.keyboard3?.keys);
const k = pluckKeysFromKeybag(source?.keyboard3?.keys.key, ['a', 'b', 'c']);
assert.sameDeepOrderedMembers(k, [
assert.sameDeepOrderedMembers(k.map((entry) => {
// Drop the Symbol members from the returned keys; assertions may expect their presence.
return {
id: entry.id,
output: entry.output
};
}), [
{id: 'a', output: 'a'},
{id: 'b', output: 'b'},
{id: 'c', output: 'c'},
@ -63,7 +75,13 @@ describe('ldml keyboard xml reader tests', function () {
callback: (data, source, subpath, callbacks) => {
assert.ok(source?.keyboard3?.keys);
const k = pluckKeysFromKeybag(source?.keyboard3?.keys.key, ['a', 'b', 'c']);
assert.sameDeepOrderedMembers(k, [
assert.sameDeepOrderedMembers(k.map((entry) => {
// Drop the Symbol members from the returned keys; assertions may expect their presence.
return {
id: entry.id,
output: entry.output
};
}), [
{id: 'a', output: 'a'},
{id: 'b', output: 'b'},
{id: 'c', output: 'c'},
@ -76,7 +94,13 @@ describe('ldml keyboard xml reader tests', function () {
callback: (data, source, subpath, callbacks) => {
assert.ok(source?.keyboard3?.keys);
const k = pluckKeysFromKeybag(source?.keyboard3?.keys.key, ['a', 'b', 'c', 'zz', 'hash', 'hyphen']);
assert.sameDeepOrderedMembers(k, [
assert.sameDeepOrderedMembers(k.map((entry) => {
// Drop the Symbol members from the returned keys; assertions may expect their presence.
return {
id: entry.id,
output: entry.output
};
}), [
{ id: 'a', output: 'a' }, // implied
{ id: 'b', output: 'b' },
{ id: 'c', output: 'c' },