remove deprecated property in KeyboardEvent
This commit is contained in:
parent
eff8d9a83e
commit
5ac1f60ece
10 changed files with 32 additions and 87 deletions
|
@ -1,31 +0,0 @@
|
|||
import { expect } from "chai";
|
||||
import * as keys from '../../src/shared/keys';
|
||||
|
||||
describe("keys", () => {
|
||||
const KEYMAP = {
|
||||
'g<C-X>GG': [],
|
||||
'gg': { type: 'scroll.top' },
|
||||
};
|
||||
|
||||
const g = 'g'.charCodeAt(0);
|
||||
const G = 'G'.charCodeAt(0);
|
||||
const x = 'x'.charCodeAt(0);
|
||||
|
||||
describe('#asKeymapChars', () => {
|
||||
let keySequence = [
|
||||
{ code: g },
|
||||
{ code: x, ctrl: true },
|
||||
{ code: G }
|
||||
];
|
||||
expect(keys.asKeymapChars(keySequence)).to.equal('g<C-X>G');
|
||||
});
|
||||
|
||||
describe('#asCaretChars', () => {
|
||||
let keySequence = [
|
||||
{ code: g },
|
||||
{ code: x, ctrl: true },
|
||||
{ code: G }
|
||||
];
|
||||
expect(keys.asCaretChars(keySequence)).to.equal('g^XG');
|
||||
});
|
||||
});
|
Reference in a new issue