'Check whether the caret is before the MARKER text.'

def check(self):

    self.js.run_file('position_caret.js')
    self.js.webview.triggerPageAction(QWebPage.SelectNextWord)
    assert (self.js.webview.selectedText().rstrip() == 'MARKER')
