'Test conversion by using evaluateJavaScript.'

def _test_escape_simple(self, text, webframe):

    escaped = javascript.string_escape(text)
    result = webframe.evaluateJavaScript('"{}";'.format(escaped))
    assert (result == text)
