Unit tests for showSelection

Effectively covers testing of ve.ce.Document.getNodeAndOffset.

Split showSelection into getSelection/showSelection for testing.

Change-Id: I36724597cf14572699c2cf768fc5b59751b95dc0
Merge "Unit tests for showSelection"