Merge pull request #394 from ueokande/qa-0.13

QA 0.13
jh-changes
Shin'ya Ueoka 7 years ago committed by GitHub
commit 309b191fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 44
      QA.md
  2. 1
      README.md
  3. 4
      src/background/actions/command.js
  4. 2
      src/settings/components/form/keymaps-form.jsx

44
QA.md

@ -17,7 +17,8 @@ The behaviors of the console are tested in [Console section](#consoles).
- [ ] <kbd>:</kbd>: open empty console - [ ] <kbd>:</kbd>: open empty console
- [ ] <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>: open a console with `open`, `tabopen`, `winopen` - [ ] <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>: open a console with `open`, `tabopen`, `winopen`
- [ ] <kbd>O</kbd>, <kbd>T</kbd>, <kbd>W</kbd>: open a console with `open`, `tabopen`, `winopen` and current URL - [ ] <kbd>O</kbd>, <kbd>T</kbd>, <kbd>W</kbd>: open a console with `open`, `tabopen`, `winopen` and current URL
- [ ] <kbd>b</kbd>: open a consolw with `buffer` - [ ] <kbd>b</kbd>: open a console with `buffer`
- [ ] <kbd>a</kbd>: open a console with `addbookmark` and the current page's title
#### Tabs #### Tabs
@ -26,11 +27,16 @@ The behaviors of the console are tested in [Console section](#consoles).
#### Misc #### Misc
- [ ] <kbd>g</kbd><kbd>f</kbd>: open page source in the new tab.
- [ ] <kbd>y</kbd>: yank current URL and show a message - [ ] <kbd>y</kbd>: yank current URL and show a message
- [ ] <kbd>p</kbd>: open clipbord's URL in current tab - [ ] <kbd>p</kbd>: open clipboard's URL in current tab
- [ ] <kbd>P</kbd>: open clipbord's URL in new tab - [ ] <kbd>P</kbd>: open clipboard's URL in new tab
- [ ] Toggle enabled/disabled of plugin bu <kbd>Shift</kbd>+<kbd>Esc</kbd> - [ ] Toggle enabled/disabled of plugin bu <kbd>Shift</kbd>+<kbd>Esc</kbd>
- [ ] Hide error and info console by <kbd>Esc</kbd> - [ ] Hide error and info console by <kbd>Esc</kbd>
- [ ] Vim-Vixen icons changes on <kbd>Shift</kbd>+<kbd>Esc</kbd>
- [ ] Add-on is enabled and disabled by clicking the indicator on the tool bar.
- [ ] The indicator changed on selected tab changed (changes add-on enabled)
- [ ] Notify to users on add-on updated at first time.
### Following links ### Following links
@ -40,8 +46,11 @@ The behaviors of the console are tested in [Console section](#consoles).
- [ ] Select link and open it in the frame in `<iframe>`/`<frame`> on following by <kbd>f</kbd> - [ ] Select link and open it in the frame in `<iframe>`/`<frame`> on following by <kbd>f</kbd>
- [ ] Select link and open it in new tab in `<iframe>`/`<frame`> on following by <kbd>F</kbd> - [ ] Select link and open it in new tab in `<iframe>`/`<frame`> on following by <kbd>F</kbd>
- [ ] Select link and open it in `<area>` tags, for <kbd>f</kbd> and <kbd>F</kbd> - [ ] Select link and open it in `<area>` tags, for <kbd>f</kbd> and <kbd>F</kbd>
- [ ] Open new tab in background by `"background": true`
- [ ] Configure custom hint character by `:set hintchars=012345678` - [ ] Configure custom hint character by `:set hintchars=012345678`
- [ ] Configure custom hint character by settings `"hintchars": "012345678"` - [ ] Configure custom hint character by settings `"hintchars": "012345678"` in add-on preferences
- [ ] Configure adjacent tab by `:set adjacenttab`
- [ ] Configure adjacent tab by settings `adjacenttab: true` in add-on preferences
- [ ] Opened tabs is in child on Tree Style Tab - [ ] Opened tabs is in child on Tree Style Tab
### Consoles ### Consoles
@ -59,8 +68,8 @@ The behaviors of the console are tested in [Console section](#consoles).
- [ ] `open`,`open<SP>`: open default search engine - [ ] `open`,`open<SP>`: open default search engine
<br> <br>
- [ ] `tabopen`: do avobe tests replaced `open` with `tabopen`, and verify the page is opened in new tab - [ ] `tabopen`: do above tests replaced `open` with `tabopen`, and verify the page is opened in new tab
- [ ] `winopen`: do avobe tests replaced `open` with `winopen`, and verify the page is opened in new window - [ ] `winopen`: do above tests replaced `open` with `winopen`, and verify the page is opened in new window
<br> <br>
- [ ] `buffer`,`buffer<SP>`: do nothing - [ ] `buffer`,`buffer<SP>`: do nothing
@ -68,6 +77,19 @@ The behaviors of the console are tested in [Console section](#consoles).
- [ ] `buffer 1`: select leftmost tab - [ ] `buffer 1`: select leftmost tab
- [ ] `buffer 0`, `buffer <a number more than count of tabs>`: shows an error - [ ] `buffer 0`, `buffer <a number more than count of tabs>`: shows an error
- [ ] select tabs rotationally when more than two tabs are matched - [ ] select tabs rotationally when more than two tabs are matched
<br>
- [ ] `addbookmark` creates a bookmark
<br>
- [ ] `q`, `quit`: close current tab
- [ ] `bdelete`: delete a not-pinned tab matches with keywords
- [ ] `bdelete`: show errors no-tabs or more than 1 tabs matched
- [ ] `bdelete`: can not delete pinned tab
- [ ] `bdelete!`: delete a tab matches with keywords
- [ ] `bdelete!`: delete a pinned tab matches with keywords
- [ ] `bdeletes`: delete tabs with matched with keywords excluding pinned
- [ ] `bdeletes!`: delete tabs with matched with keywords including pinned
### Completions ### Completions
@ -77,9 +99,10 @@ The behaviors of the console are tested in [Console section](#consoles).
- [ ] `open<SP>`: show all engines and some history items - [ ] `open<SP>`: show all engines and some history items
- [ ] `open g`: complete search engines starts with `g` and matched with keywords `g` - [ ] `open g`: complete search engines starts with `g` and matched with keywords `g`
- [ ] `open foo bar`: complete history items matched with keywords `foo` and `bar` - [ ] `open foo bar`: complete history items matched with keywords `foo` and `bar`
- [ ] The completions shows histories, search engines, and bookmarks.
- [ ] also `tabopen` and `winopen` - [ ] also `tabopen` and `winopen`
- shortening commands such as `o` are not test in this release - shortening commands such as `o` are not test in this release
- [ ] Show competions for `:open`/`:tabopen`/`:buffer` on opning just after closed - [ ] Show completions for `:open`/`:tabopen`/`:buffer` on opening just after closed
#### Buffer command #### Buffer command
@ -87,6 +110,11 @@ The behaviors of the console are tested in [Console section](#consoles).
- [ ] `buffer<SP>`: show all opened tabs in completion - [ ] `buffer<SP>`: show all opened tabs in completion
- [ ] `buffer x`: show tabs which has title and URL matches with `x` - [ ] `buffer x`: show tabs which has title and URL matches with `x`
#### Buffer command
- [ ] `bdelete`, `bdeletes`: show tabs excluding pinned tabs
- [ ] `bdelete!`, `bdeletes!`: show tabs including pinned tabs
#### Misc #### Misc
- [ ] Select next item by <kbd>Tab</kbd> and previous item by <kbd>Shift</kbd>+<kbd>Tab</kbd> - [ ] Select next item by <kbd>Tab</kbd> and previous item by <kbd>Shift</kbd>+<kbd>Tab</kbd>
@ -165,7 +193,7 @@ The behaviors of the console are tested in [Console section](#consoles).
- [ ] able to scroll on Gmail and Slack - [ ] able to scroll on Gmail and Slack
- [ ] Focus text box on Twitter or Slack, press <kbd>j</kbd>, then <kbd>j</kbd> is typed in the box - [ ] Focus text box on Twitter or Slack, press <kbd>j</kbd>, then <kbd>j</kbd> is typed in the box
- [ ] Focus the text box on Twitter or Slack on following mode - [ ] Focus the text box on Twitter or Slack on following mode
- [ ] Tha pages is shown in https://pitchify.com/ - [ ] The pages is shown in https://pitchify.com/
- [ ] Open console in http://www.espncricinfo.com/ - [ ] Open console in http://www.espncricinfo.com/
## Find mode ## Find mode

@ -24,6 +24,7 @@ The default mappings are as follows:
- <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>: open a page in current tab, new tab, or new window - <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>: open a page in current tab, new tab, or new window
- <kbd>O</kbd>, <kbd>T</kbd>, <kbd>W</kbd>: similar to <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>, but that contains current URL - <kbd>O</kbd>, <kbd>T</kbd>, <kbd>W</kbd>: similar to <kbd>o</kbd>, <kbd>t</kbd>, <kbd>w</kbd>, but that contains current URL
- <kbd>b</kbd>: Select tabs by URL or title - <kbd>b</kbd>: Select tabs by URL or title
- <kbd>a</kbd>: add current page to the bookmarks
#### Tabs #### Tabs
- <kbd>!</kbd><kbd>d</kbd>: delete pinned tab - <kbd>!</kbd><kbd>d</kbd>: delete pinned tab

@ -20,7 +20,9 @@ const tabopenCommand = (url) => {
}; };
const tabcloseCommand = () => { const tabcloseCommand = () => {
return browser.tabs.query({ active: true }).then((tabList) => { return browser.tabs.query({
active: true, currentWindow: true
}).then((tabList) => {
return browser.tabs.remove(tabList.map(tab => tab.id)); return browser.tabs.remove(tabList.map(tab => tab.id));
}); });
}; };

@ -51,6 +51,7 @@ const KeyMapFields = [
['command.show.winopen?{"alter":false}', 'Open URL in new window'], ['command.show.winopen?{"alter":false}', 'Open URL in new window'],
['command.show.winopen?{"alter":true}', 'Alter URL in new window'], ['command.show.winopen?{"alter":true}', 'Alter URL in new window'],
['command.show.buffer', 'Open buffer command'], ['command.show.buffer', 'Open buffer command'],
['command.show.addbookmark?{"alter":true}', 'Open addbookmark command'],
], [ ], [
['addon.toggle.enabled', 'Enable or disable'], ['addon.toggle.enabled', 'Enable or disable'],
['urls.yank', 'Copy current URL'], ['urls.yank', 'Copy current URL'],
@ -59,6 +60,7 @@ const KeyMapFields = [
['zoom.in', 'Zoom-in'], ['zoom.in', 'Zoom-in'],
['zoom.out', 'Zoom-out'], ['zoom.out', 'Zoom-out'],
['zoom.neutral', 'Reset zoom level'], ['zoom.neutral', 'Reset zoom level'],
['page.source', 'Open a page source'],
] ]
]; ];