Bug 858399 - context menu should work in panels

- Tests added for `contextMenu` options

Notice that this pull request depends by pull 1542.
Only the tests needs to be reviewed (so: `test-panel.js`).