This tests to make sure that document.getSelection() is supported and returns a Selection object for the document.
xxx