aboutsummaryrefslogtreecommitdiff
path: root/e2e
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-29 20:07:23 +0900
committerGitHub <noreply@github.com>2019-05-29 20:07:23 +0900
commit68673957edad21700c58d252542a0aee04115d22 (patch)
tree7a58c00d82372a27b03fcbcdbf63d3fc7ec52c39 /e2e
parentaea17a52d692310ac459410c7d6b4e0bfd5e0225 (diff)
parent698f905145755954647f91ae01f5966b9e35a91e (diff)
Merge pull request #596 from ueokande/qa-0.23
QA 0.23
Diffstat (limited to 'e2e')
-rw-r--r--e2e/follow_properties.test.js34
1 files changed, 33 insertions, 1 deletions
diff --git a/e2e/follow_properties.test.js b/e2e/follow_properties.test.js
index 5e82b50..223923e 100644
--- a/e2e/follow_properties.test.js
+++ b/e2e/follow_properties.test.js
@@ -3,6 +3,7 @@ const lanthan = require('lanthan');
const path = require('path');
const assert = require('assert');
const eventually = require('./eventually');
+const Console = require('./lib/Console');
const Key = lanthan.Key;
@@ -114,7 +115,6 @@ describe('follow properties test', () => {
assert.equal(await hints[2].getStyle('display'), 'block');
assert.equal(await hints[3].getStyle('display'), 'block');
assert.equal(await hints[4].getStyle('display'), 'none');
-
});
});
@@ -147,4 +147,36 @@ describe('follow properties test', () => {
assert.equal(tabs[1].active, false);
});
});
+
+ it('should show hints with hintchars by settings', async () => {
+ let c = new Console(session);
+
+ await body.sendKeys(':');
+ await session.switchToFrame(0);
+ await c.sendKeys('set hintchars=abc', Key.Enter);
+ await session.switchToParentFrame();
+
+ await body.sendKeys('f');
+ await eventually(async() => {
+ let hints = await session.findElementsByCSS('.vimvixen-hint');
+ assert.equal(hints.length, 5);
+
+ assert.equal(await hints[0].getText(), 'A');
+ assert.equal(await hints[1].getText(), 'B');
+ assert.equal(await hints[2].getText(), 'C');
+ assert.equal(await hints[3].getText(), 'AA');
+ assert.equal(await hints[4].getText(), 'AB');
+ });
+
+ await body.sendKeys('a');
+ await eventually(async() => {
+ let hints = await session.findElementsByCSS('.vimvixen-hint');
+
+ assert.equal(await hints[0].getStyle('display'), 'block');
+ assert.equal(await hints[1].getStyle('display'), 'none');
+ assert.equal(await hints[2].getStyle('display'), 'none');
+ assert.equal(await hints[3].getStyle('display'), 'block');
+ assert.equal(await hints[4].getStyle('display'), 'block');
+ });
+ });
});