diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-18 21:38:18 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-18 21:38:18 +0900 |
commit | ec6a7c8871a2fec6c0d8c29a01b655778daad2fa (patch) | |
tree | a4503612ed8d719d8f844ae8ed6385d7067b5091 /e2e | |
parent | 08d198eb3062cd263f799837208eacf5139f0d47 (diff) |
add <C-6> test
Diffstat (limited to 'e2e')
-rw-r--r-- | e2e/contents/tab.test.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/e2e/contents/tab.test.js b/e2e/contents/tab.test.js index 56d1f21..be4288f 100644 --- a/e2e/contents/tab.test.js +++ b/e2e/contents/tab.test.js @@ -182,6 +182,26 @@ describe("tab test", () => { }); }); + it('selects last selected tab by <C-6>', () => { + return Promise.resolve().then(() => { + return tabs.create(targetWindow.id, SERVER_URL + '#1') + }).then(() => { + return tabs.create(targetWindow.id, SERVER_URL + '#2') + }).then(() => { + return tabs.create(targetWindow.id, SERVER_URL + '#3'); + }).then(() => { + return tabs.selectAt(targetWindow.id, 1); + }).then(() => { + return tabs.selectAt(targetWindow.id, 3); + }).then((tab) => { + return keys.press(tab.id, '6', { ctrlKey: true }); + }).then(() => { + return windows.get(targetWindow.id); + }).then((win) => { + expect(win.tabs[1].active).to.be.true; + }); + }); + it('deletes tab by d', () => { return Promise.resolve().then(() => { return tabs.create(targetWindow.id, SERVER_URL + '#1'); |