Bug 858399 - context menu should work in panels

Tests added for `contextMenu` options (see pull #1542).